notebook
notebook copied to clipboard
How can I start a Jupyter server from Python
trafficstars
I have an existing Python process running a Tornado web application (Dask) and I would like to run a Jupyter notebook server from within this process, on the same event loop. I looked around and couldn't find any good documentation on how to start Jupyter from within Python. Is this easy?
Ideally I would do something like the following:
from notebook import Server
io_loop = tornado.ioloop.IOLoop.current()
server = Server(io_loop=io_loop)
await server.start()