How to close IPython Notebook properly?

前端 未结 14 1135
渐次进展
渐次进展 2020-12-04 06:34

How to close IPython Notebook properly?

Currently, I just close the browser tabs and then use Ctrl+C in the terminal.
Unfortunately, neither e

14条回答
  •  眼角桃花
    2020-12-04 07:22

    First step is to save all open notebooks. And then think about shutting down your running Jupyter Notebook. You can use this simple command:

    $ jupyter notebook stop 
    Shutting down server on port 8888 ...
    

    Which also takes the port number as argument and you can shut down the jupyter notebook gracefully.

    For eg:

    jupyter notebook stop 8889 
    Shutting down server on port 8889 ...
    

    Additionally to know your current juypter instance running, check below command:

    shell> juypter notebook list 
    Currently running servers:
    http://localhost:8888/?token=ef12021898c435f865ec706d7c9af8607a7ba58bbee98632 :: /Users/username/jupyter-notebooks [/code]
    

提交回复
热议问题