jupyter / jupyter/notebook

How can I start a Jupyter server from Python

Open
#4,873 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

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:

```python
from notebook import Server

io_loop = tornado.ioloop.IOLoop.current()

server = Server(io_loop=io_loop)
await server.start()
```

Contributor guide

Open the contributing guide

Research direction

Start by investigating the Python notebook.Server API and Tornado's IOLoop integration described in the issue. Confirm whether a Jupyter server can run within an existing Dask web application's event loop, then document the supported startup pattern and its limitations.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.