To get the list of running Jupyter notebooks in IPython environment run the following comamnd:

system("jupyter" "notebook" "list")

This will show you the list of notebooks and their corresponding tokens.