How can I start a Jupyter server from Python
- 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
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