aviyaron
aviyaron

Reputation: 969

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

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?

Upvotes: 76

Views: 128338

Answers (2)

sai_varshittha
sai_varshittha

Reputation: 323

  1. You can follow 'Kernel' --> 'Interrupt' in the menu bar at the top.
  2. Pressing 'I' to the left of the cell also works. This only works if you're in command mode. If not already enabled, press Esc to enable it.
  3. If you are okay to lose variables,you might restart the session.

Upvotes: 6

Ashish Tyagi
Ashish Tyagi

Reputation: 837

Click on 'Interrupt' under 'Kernel' in the toolbar. Pressing I twice will also do the trick.

Source - Is there an equivalent to CTRL+C in IPython Notebook in Firefox to break cells that are running?

Upvotes: 72

Related Questions