# The Kernel: Why Run Order Matters

A notebook's kernel remembers every name its cells made, in the order they ran rather than the order on the page, so a cell run twice or a deleted cell's variable gives answers the file can't reproduce; execution counts show the real order, Restart and Run All gives the file's true answers, the Variables view lists what the kernel remembers, and Interrupt stops a cell that runs too long.

![Cheat sheet: The Kernel: Why Run Order Matters](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/f96aa14939434be5856495ce796b1490.webp)

- Category: Data Analysis
- Level: Apprentice
- Tags: Execution Count, Kernel (python), NameError, python, Restart and Run All
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/data-notebooks-kernel-and-run-order-cheat-sheet
