简体   繁体   English

我应该如何在 iPython 笔记本中停止繁忙的单元格?

[英]How should I stop a busy cell in an iPython notebook?

I have trouble stopping a given kernel in an iPython notebook.我无法在 iPython 笔记本中停止给定的内核。

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?我怎样才能停止内核?

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 来中断正在运行的单元格?

  1. You can follow 'Kernel' --> 'Interrupt' in the menu bar at the top.您可以按照顶部菜单栏中的“内核”->“中断”进行操作。
  2. Pressing 'I' to the left of the cell also works.按单元格左侧的“I”也可以。 This only works if you're in command mode.这仅在您处于命令模式时有效。 If not already enabled, press Esc to enable it.如果尚未启用,请按 Esc 启用它。
  3. If you are okay to lose variables,you might restart the session.如果您可以丢失变量,则可以重新启动会话。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 (是)iPython Notebook中的内核繁忙 - (is) kernel busy in ipython notebook 如何增加Enthought Canopy中ipython笔记本的单元格宽度? - How do I increase the cell width of the ipython notebook in Enthought Canopy? 如何引用同一笔记本中另一个iPython笔记本单元中定义的函数? - How can I reference a function defined in another iPython notebook cell, within the same notebook? IPython Notebook-检测Java内核是否忙/闲 - IPython Notebook - Detect if Kernel is Busy/Idle in Javascript 在 ipython notebook 中,如何实现隐藏所有源代码和编辑按钮的“单单元格”样式? - In ipython notebook, how can I achieve a "single cell" style that hides all source code and edit buttons? 如何在不使用ipython的情况下配置jupyter笔记本以使用某些导入来预加载单元格? - How do I configure jupyter notebook for having a pre loaded cell with certain imports without using ipython? 如何在浏览器中增加 Jupyter/ipython 笔记本的单元格宽度? - How do I increase the cell width of the Jupyter/ipython notebook in my browser? 在ipython笔记本中读取单元格内容 - Read cell content in an ipython notebook 防止ipython笔记本中的单元格编辑 - prevent cell edits in ipython notebook 如何在 Ipython notebook 中的循环中动态更新绘图(在一个单元格内) - How to dynamically update a plot in a loop in Ipython notebook (within one cell)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM