Closed teddyrendahl closed 5 years ago
Nbopen is really about getting you to the interface, so I'm not sure how useful it will be if you don't want to do that.
There are two layers at which you could launch a kernel, depending on your needs:
jupyter_client
Python API, so your process is the parent process. E.g. nbconvert does this when you run a notebook with nbconvert --execute
. Here's the code for that: https://github.com/jupyter/nbconvert/blob/5.4/nbconvert/preprocessors/execute.pyThank you for following up @takluyver. Much appreciated.
You seem to have sent the same link twice. Would you mind pointing me towards the HTTP request API?
Certainly, here it is: https://github.com/jupyter/jupyter/wiki/Jupyter-Notebook-Server-API#sessions-api
It's somewhat brief, so you might need to look at some code to understand how to pass the parameters. Here's the JS code which makes an AJAX request to start a session using the REST API:
(A session associates a notebook path with a kernel. Starting a session will automatically start a kernel for you if necessary)
Hello,
I'm trying to modify your code a little bit to launch a notebook kernel without the browser. It appears that just setting
cfg.NotebookApp.open_browser = False
doesn't do the trick. Could you point me in the right direction on how to launch one of these kernels sans web browser?