How to stop the running cell if interupt kernel does not work in Jupyter Notebook

后端 未结 6 881
我在风中等你
我在风中等你 2021-02-05 00:53

I\'m using Jupyter Notebook for a while. Often when I tried to stop a cell execution, interrupting kernel did not work. In this case, what else can I do, other than just closing

6条回答
  •  深忆病人
    2021-02-05 01:31

    This worked for me: - Put the laptop to sleep (one of the power options) - Wait 10 s - Wake up computer (with power button)

    Kernel then says reconnecting and its either interrupted or you can press interrupt.

    Probably isn't fool proof but worth a try so you don't waste previous computation time. (I had Windows 10 running a Jupyter Notebook that wouldn't stop running a piece of Selenium code)

提交回复
热议问题