Show Menu
Cheatography

Jupyter Notebook Commands Keyboard Shortcuts by

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:

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. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Jupyter Notebook Editor Keyboard Shortcuts