notebook icon indicating copy to clipboard operation
notebook copied to clipboard

How can I start a Jupyter server from Python

Open mrocklin opened this issue 6 years ago • 7 comments
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()

mrocklin avatar Sep 10 '19 17:09 mrocklin