Restart and Run All

noun

say it: “ree-START and RUN AWL” /riˈstɑrt ənd ˈrʌn ˈɔl/

Clearing everything a notebook remembers and then running all of its cells in order from the top, to check the results it really gives.

What does Restart and Run All do in a notebook?

Restart and Run All stops a notebook's kernel, starts a new one with an empty memory, then runs every cell once from top to bottom. The results you see afterward are the ones the file really gives, so it's the step before you trust a number or share a notebook. In VS Code, it's Restart, then Run All, in the notebook's toolbar.

Before: [1] [2] [5] [4]   total shows 57.45 (a cell ran twice)
After:  [1] [2] [3] [4]   total shows 53.19 (what the file really gives)

In a sentence

  • “After Restart and Run All, the total changed from 57.45 to 53.19.”
  • “She always does Restart and Run All before she sends a notebook to her boss.”

Level: Apprentice · More Python terms at this level

Updated