You can list running Jupyter Notebook servers using the following command.
jupyter notebook listIt 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 serversFor more please refer to
https://