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

Viewed 94917

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?

2 Answers
  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.
Related