Use notebook_dir or file_to_run automatically#17
Conversation
|
I'm ambivalent about specifying directories for nbopen - I mainly see the Python code as infrastructure for integrating IPython with a desktop environment so you can double click on notebooks. It should still specify |
I don't get what you mean, sorry. This seems very close to what notebookapp does (or did, don't know much about 3.x) |
|
At present, when I run it with a notebook file, it will call |
|
I had totally missed that notebook_dir was in there at all. Shouldn't it be the dirname() of the notebook? Using the homedir is unnecessarily unsafe... Another approach would be to add a --notebook_dir option (although what I use nbopen for is just open a directory, not a specific notebook). |
Doesn't fix #15, but at least opens the right notebook if you pass a directory to nbopen.