Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

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.