Jupyter Lesson 9: How to Interrupt the Kernel (Stop code from running)

Every now and then you will run code that either runs forever (infinite loop) or has errors you identified and want to stop. To stop code from running you must interrupt the kernel. Interrupting the kernel stops the code from running but doesn’t remove the variable you have stored in memory.

How do you know your code is running?

  1. You can tell a code is currently running by looking at the Circle in the top right corner of the notebook. If its filled code is running if its not filled code is not running
Empty circle means code is not running
Filled in circle means code is running

How do you stop code from running?

  1. To stop code from running press the STOP button