Ben Chuanlong Du's Blog

And let it direct your passion with reason.

List Running Jupyter Notebook Servers

You can list running Jupyter Notebook servers using the following command.

jupyter notebook list

It works well most of the time. However, if the servers are launched using the root account (e.g., in a Docker container), you might encounter issues. In this case, a better alternative is to list running servers using Python script.

from notebook import notebookapp
servers = list(notebookapp.list_running_servers())
print servers

For more please refer to https://stackoverflow.com/questions/41782255/how-to-get-the-current-jupyter-notebook-servers-in-python.

Comments