Reputation: 2101
I have 2 notebooks under the root folder in my workspace. Calling one notebook from the other with %run magic cmd returns error saying file path not found. This is my command:
%run /Users/[email protected]/notebookB $arg1=val1 $arg2=val2
Upvotes: 5
Views: 7533
Reputation: 2101
Found the solution, turns out the run command needs to be in a cell all by itself - no other code and no comments. I have seen some solutions online say that the cell should not contain any comments, but turns out it should not contain any other code either.
Upvotes: 20
Reputation: 87259
It's really better to use relative names instead of absolute (starting with /
):
./notebook_name
../notebook_name
subfolder/notebook_name
Upvotes: 0