我应该如何在 iPython 笔记本中停止繁忙的单元格?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36205356/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How should i stop a busy cell in an iPython notebook?
提问by aviyaron
I have trouble stopping a given kernel in an iPython notebook. Many times the cell is stuck, and i need to restart the entire kernel. The loop could be messy sometimes. How can i stop the kernel?
我无法在 iPython 笔记本中停止给定的内核。很多时候单元卡住了,我需要重新启动整个内核。循环有时可能很混乱。我怎样才能停止内核?
回答by Ashish Tyagi
Click on 'Interrupt' under 'Kernel' in the toolbar. Pressing I
twice will also do the trick.
单击工具栏中“内核”下的“中断”。按I
两次也可以解决问题。
Source - Is there an equivalent to CTRL+C in IPython Notebook in Firefox to break cells that are running?
来源 -在 Firefox 中的 IPython Notebook 中是否有等效于 CTRL+C 来中断正在运行的单元格?