Jupyter Notebook Commands Cheat Sheet

A Programming › Python cheat sheet in English by subhroster

In the world of Jupyter Notebook, being fluent in its command language is key. Here's a rundown of the most commonly used commands and their descriptions:

4,982 views 1,412 downloads 20 Sep 2023 History

Command Mode Shortcuts (press Esc to enable)

Enter
Enter Edit Mode
H
Show all shortcuts
Up/K
Select cell above
Down/J
Select cell below
A
Insert cell above the current cell
B
Insert cell above the current cell
C
Copy selected cells
X
Cut selected cells
V
Paste cells below
D
Delete the selected cell.
D+D
Delete selected cells
Z
Undo cell deletion
M
Change cell type to Markdown
Y
Change cell type to Code
Shift+­Arrow Up/Arrow Down
Select multiple cells.
Ctrl+Shift + '­-'
Split the current cell at the cursor.
Shift+­'­M'
Merge selected cells.
Ctrl+S­hif­t+'P­'
Open the command palette.

Edit Mode Shortcuts (press Enter to enable)

Esc
Switch to command mode
Ctrl+Enter
Run cell
Shift+­Enter
Run cell, select below
Alt+Enter
Run cell, insert below
Ctrl + End
Go to cell end.
Ctrl + Home
Go to cell start.
Ctrl+A
Select all
Ctrl+Z
Undo
Ctrl+S­hift+Z / Ctrl+Y
Redo
Ctrl+S
Save and checkpoint
Tab
Code completion or indent
Ctrl+]
Indent
Ctrl+[
Dedent
Shift+Tab
Tooltip

Shortcuts in both modes:

Shift + Enter
Run the current cell and move the cursor to the next cell.
Ctrl + Enter
Run the current cell without moving the cursor.
Alt + Enter
run the current cell, insert below
Ctrl + S
save and checkpoint

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.