Jupyter Notebook keyboard shortcuts

Jupyter Notebook keeps the notebook itself in the browser, so its most useful keys switch between editing and command mode, run cells, search, and control the kernel.

Windows, macOS, Linux · 6 shortcuts

Notebook editing

Run a cell, switch the notebook between editing and command mode, and search the current page.

ActionWindowsmacOSLinux
Run the current cellShiftEnterShiftEnterShiftEnter
Switch to command modeEscEscEsc
Switch to edit modeEnterEnterEnter
Find in the notebookCtrlFCmdFCtrlF

Kernel control

These command-mode sequences interrupt or restart the computational process behind the notebook.

ActionWindowsmacOSLinux
Interrupt the kerneliiiiii
Restart the kernel000000

Make a printable Jupyter Notebook sheet