How to close IPython Notebook properly?

前端 未结 14 1141
渐次进展
渐次进展 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条回答
  •  Happy的楠姐
    2020-12-04 07:36

    Linux (Ubuntu 14.04)
    

    As mentioned, try to kill ipython notebook processes properly by first going to the "running" tab in your ipynb/jupyter browser session, and then check open terminals on your console and shut down with ctrl-c. The latter should be avoided if possible.

    If you run an ipython notebook list and continue to see running ipython servers at different ports, make note of which ports the existing notebooks are being served to. Then shut down your TCP ports:

    fuser -k 'port#'/tcp 
    

    I'm not sure if there are other risks involved with doing this. If so, let me know.

提交回复
热议问题