takluyver / nbopen

Open a Jupyter notebook in the best available server
BSD 3-Clause "New" or "Revised" License
301 stars 58 forks source link

nbopen is inconsistent in re returning to interactive prompt after execution. #66

Open ctb opened 4 years ago

ctb commented 4 years ago

nbopen file.ipynb returns to prompt if there is a running Jupyter process that it can use.

nbopen file.ipynb otherwise starts a new Jupyter process in the foreground, not returning to the prompt.

It would be nice if there was an option to always go into background, e.g. emacsclient -n never hangs.

takluyver commented 4 years ago

The & option? :wink:

I guess you want it to go into the background without continuing to print logs into your terminal? Is there an obvious place default place to send logging messages?

This and #65 are both partly because one major use case for nbopen is integrating with file managers to allow double-clicking ipynb files. Neither of these issues really come up in that context. Which doesn't make them any less important - it's meant to work for shell usage too - but it might help explain why things are they way they are.