› Jupyter Notebook

Jupyter Notebook Shortcuts

Jupyter Notebook keyboard shortcuts for running cells, command vs edit mode, and notebook editing. vNotebook 7 / JupyterLab

Source: Official documentation · Dataset date 2026-06

Advanced additions follow the versioned JupyterLab 4.6.6 notebook keymap. Command and edit modes and focused writable cells are distinct. Control remains Control on Mac; Accel becomes Command. Markdown heading levels are alternatives for one action, not six separate commands. Existing Notebook 7/JupyterLab entries outside the listed corrections were not all reverified; this is not a Notebook 6 compatibility guarantee.

46
Shortcuts
4
Categories

Cheat sheet guide

Jupyter Notebook shortcuts worth learning first

This page collects 46 searchable Jupyter Notebook keyboard shortcuts across 4 categories. Start with the shortcuts for Run cells, Command mode, Edit mode, File & Find, then print the cheat sheet once the important ones are worth keeping nearby.

  • Run cell, select belowShiftEnter
  • Enter command modeEsc
  • Enter edit modeEnter
  • Save notebookCtrlS
  • Run cell, stayCtrlEnter
  • Run cell, insert belowAltEnter

Run cells

5 shortcuts
Run cell, select below
ShiftEnter
Shift+Enter
Run cell, stay
CtrlEnter
Ctrl+Enter · Cmd+Enter
Run cell, insert below
AltEnter
Alt+Enter · Opt+Enter
Interrupt kernel
II
I I
Restart kernel
00
0 0

Command mode

33 shortcuts
Enter command mode
Esc
Esc
Insert cell above
A
Insert cell below
B
Delete cell
DD
D D
Undo cell deletion
Z
Change to Markdown
M
Change to code
Y
Cut cell
X
Copy cell
C
Paste cell below
V
Toggle line numbers
ShiftL(commandmode)
Shift+L
Change Cell to Raw Format
R(commandmode)
Extend Cell Selection Above
Shift↑(commandmode)ShiftK(commandmode)
Shift+↑ · Shift+K
Extend Cell Selection to Top
ShiftHome(commandmode)
Shift+Home
Extend Cell Selection Below
Shift↓(commandmode)ShiftJ(commandmode)
Shift+↓ · Shift+J
Extend Cell Selection to Bottom
ShiftEnd(commandmode)
Shift+End
Merge Selected Notebook Cells
ShiftM(commandmode)
Shift+M
Merge Notebook Cell Above
CtrlBackspace(commandmode)
Ctrl+Backspace
Merge Notebook Cell Below
CtrlShiftM(commandmode)
Ctrl+Shift+M
Select Notebook Cell Below
↓(commandmode)J(commandmode)
Select Notebook Cell Above
↑(commandmode)K(commandmode)
Select Previous Heading or Collapse It
←(commandmode)
Select Next Heading or Expand It
→(commandmode)
Insert Heading Above Current Heading
ShiftA(commandmode)
Shift+A
Insert Heading Below Current Heading
ShiftB(commandmode)
Shift+B
Collapse All Notebook Headings
CtrlShift←(commandmode)
Ctrl+Shift+←
Expand All Notebook Headings
CtrlShift→(commandmode)
Ctrl+Shift+→
Redo Notebook Cell Action
ShiftZ(commandmode)
Shift+Z
Select All Notebook Cells
CtrlA(commandmode)
Ctrl+A · Cmd+A
Toggle Side-by-side Rendering for Current Cell
ShiftR(commandmode)
Shift+R
Move Notebook Cell Up
CtrlShift↑(commandmode)
Ctrl+Shift+↑
Move Notebook Cell Down
CtrlShift↓(commandmode)
Ctrl+Shift+↓
Set Markdown Heading Level 1–6
1(commandmode)2(commandmode)3(commandmode)4(commandmode)5(commandmode)6(commandmode)

Edit mode

5 shortcuts
Enter edit mode
Enter
Enter
Code completion / indent
Tab
Tab
Tooltip / docstring
ShiftTab
Shift+Tab
Comment line
Ctrl/
Ctrl+/ · Cmd+/
Split cell at cursor
CtrlShift-(editmode)
Ctrl+Shift+-

File & Find

3 shortcuts
Save notebook
CtrlS
Ctrl+S · Cmd+S
Find
CtrlF
Ctrl+F · Cmd+F
Open command palette
CtrlShiftC
Ctrl+Shift+C · Cmd+Shift+C

Documentation check for this addition

22 additional actions were checked against the official documentation on 2026-11-08. Existing actions were retained. These are documentary checks, not tests in installed applications. A dash means this batch does not provide a verified binding for that system. Context such as PDF viewer, text field or address bar is part of the action.

Jupyter Notebook

Frequently asked questions

What is the fastest way to find Jupyter Notebook shortcuts on this page?

Use the search box or press /, then type an action such as run cell, select below.

Can I print this Jupyter Notebook shortcut cheat sheet?

Yes. Use the Print / PDF button or your browser print command to save a compact cheat sheet.

Which operating systems are included for Jupyter Notebook?

This reference includes shortcuts for Windows · macOS · Linux. Availability depends on the action and app version.

See also

Explore shortcuts by key

Key lookup

No shortcuts match your search.