Complete List of Jupyter Notebook Keyboard Shortcuts and Key Assignments thumbnail

Complete List of Jupyter Notebook Keyboard Shortcuts and Key Assignments

A comprehensive list of Jupyter Notebook keyboard shortcuts organized by their uses, for data analysis and machine learning. Covers cell operations, edit mode, output display, kernel management, and other key assignments that boost productivity. A definitive reference that maximizes workflow efficiency from beginners to advanced users.

Posted at: 2025.11.12

Editorial Note: We earn a commission from partner links on keyboardista - English version. Commissions do not affect our editors' opinions or evaluations.

Basic Operations

The fundamental operations in Jupyter Notebook shortcuts include execution, saving, and mode switching. Learning these forms the foundation for working quickly. Especially, Shift+Enter is the most frequently used shortcut that runs the cell and moves to the next one simultaneously. Mastering mode switches with Esc/Enter greatly improves operational efficiency.

ActionShortcut
Run cell and move to next cell
ShiftEnter
Run cell (stay on current cell)
CtrlEnter
Run cell and insert new cell below
AltEnter
Save and checkpoint
CtrlS
Switch to command mode
ESC
Switch to edit mode
Enter
Show shortcut list
H

Cell Operations

Editing tasks like adding, deleting, copying, and pasting cells generally use OS-standard shortcuts without Ctrl. Added shortcuts such as "Add cell (A key)" and "Merge cells (Shift + M key)" make these relatively easy to master.

ActionShortcut
Insert cell above
A
Insert cell below
B
Delete cell
D
Cut cell
X
Copy cell
C
Paste cell below
V
Paste cell above
ShiftV
Undo cell deletion
Z
Merge cells
ShiftM
Merge multiple cells
ShiftM
Split cell
CtrlShift-

Change Cell Type

Changing cell type is a commonly used command, so it is good to memorize. Only three keys Y, M, R for different types are needed and will be natural to remember once used.

ActionShortcut
Change to code cell
Y
Change to Markdown
M
Change to Raw cell
R
Change to Heading 1
1
Change to Heading 2
2
Change to Heading 3
3
Change to Heading 4
4
Change to Heading 5
5
Change to Heading 6
6

Cell Selection and Movement

Mastering cell selection and movement significantly speeds up work. Use J/K or arrows to move, and hold Shift to select multiple cells for batch operations like delete or merge.

ActionShortcut
Select cell above
/K
Select cell below
/J
Select multiple cells up
Shift+
/K
Select multiple cells down
Shift+
/J

Edit Mode

Editing shortcuts determine coding productivity. They largely conform to OS conventions, with some editor-specific additions. It is good to learn them if not familiar.

ActionShortcut
Code completion / indent
Tab
Tooltip display
ShiftTab
Show docstring
ShiftTab
Indent
Ctrl]
Dedent
Ctrl[
Select all
CtrlA
Undo
CtrlZ
Redo
Ctrl+Shift+
Y/Z
Go to start of cell
CtrlHOME
Go to end of cell
CtrlEND
Move one word left
Ctrl
Move one word right
Ctrl
Delete word before cursor
CtrlBackspace
Delete word after cursor
CtrlDelete
Open command palette
CtrlShiftP
Toggle comment current line
Ctrl
Find and replace
CtrlH

Display and Output Control

Output visualization controls are surprisingly useful. Toggle output display with O, scroll output with Shift+O to keep note clarity while reviewing results. Show line numbers with L for smoother review and discussion.

ActionShortcut
Toggle output visibility
O
Toggle line numbers
L
Toggle output scrolling
ShiftO
Close pager
Q

Kernel Operations

Stopping or restarting the kernel is handy when needed. The "I, I" interrupt shortcut is great for breaking infinite loops or long processes. The "0, 0" restart shortcut cleans the environment.

ActionShortcut
Interrupt kernel
I
Restart kernel
0

Scroll and Others

Navigation shortcuts improve notebook browsing efficiency. Scroll page-wise with Space/Shift+Space, open command palette with P or Ctrl+Shift+P for all-in-one function search and execution. Search quickly with Ctrl+F.

ActionShortcut
Scroll notebook up
ShiftSpace
Scroll notebook down
Space
Open command palette
P
Search
CtrlF