How to close IPython Notebook properly?

前端 未结 14 1169
渐次进展
渐次进展 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:18

    These commands worked for me:

    jupyter notebook list # shows the running notebooks and their port-numbers
                          # (for instance: 8080)
    lsof -n -i4TCP:[port-number] # shows PID.
    kill -9 [PID] # kill the process.
    

    This answer was adapted from here.

提交回复
热议问题