Skip to content

How can I start a Jupyter server from Python #4873

@mrocklin

Description

@mrocklin

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions