I am trying to run notebook_torun.ipynb in test_notebook.ipynb within Jupyter Lab Domino from a different directory but have failed. The structure looks as such:
root -> mnt -> test_notebook.ipynb
and I want to run
root -> repos -> test-directory -> notebook_torun.ipynb.
My attempt looks as such:
%run ../repos/test-directory.notebook_torun.ipynb
However everytime the command seems to append .py on the end so the error is File ../repos/test-directory.notebook_torun.ipynb.py not found.
Is there anyway to stop this behaviour so that it knows it is a notebook? Thanks
Did you try the following inside
test_notebook.ipynb?Or if you want to use the absolute path, you can use this if root is the same as home (it may not be though, see here.):
You should be able to test and develop all this using
ls(or%cdandpwd, with%cd ~/mntto switch back to original location of yourtest_notebook.ipynb,) inside your notebook.