Jupyter Notebook - Shortcuts
Basic Shortcuts
For the Mac users, they’re different buttons for Ctrl
, Shift
, and Alt
:
Ctrl
: command key ⌘
Shift
: Shift ⇧
Alt
: option ⌥
Shift + Enter
run the current cell, select belowCtrl + Enter
run selected cellsAlt + Enter
run the current cell, insert belowCtrl + S
save and checkpoint
While in command mode (press Esc
to activate):
Enter
take you into edit modeH
show all shortcutsUp
select cell aboveDown
select cell belowA
insert cell aboveB
insert cell belowShift + Up
extend selected cells aboveShift + Down
extend selected cells belowK
orDown
select cell aboveJ
orUp
select cell belowX
cut selected cellsC
copy selected cellsV
paste cells belowShift + V
paste cells aboveD
,D
(press the key twice) delete selected cellsZ
undo cell deletionS
Save and CheckpointY
change the cell type to CodeM
change the cell type to MarkdownR
change the cell type to RawP
open the command palette.Shift + Space
scroll notebook upSpace
scroll notebook downShift + M
Merge cell belowI
,I
(press the key twice) Interrupt kernelO
,O
(press the key twice) Restart kernel
While in edit mode (pressEnter to activate)
Esc
take you into command modeTab
code completion or indentShift + Tab
tooltipShift + Enter
run the current cell, select belowCtrl + Enter
run selected cellsAlt + Enter
run the current cell, insert belowCtrl + Shift + -
Split cellCtrl + ]
indentCtrl + [
dedentCtrl + A
select allCtrl + Z
undoCtrl + Shift + Z
orCtrl + Y
redoCtrl + Home
go to cell startCtrl + End
go to cell endCtrl + Left
go one word leftCtrl + Right
go one word rightCtrl + Shift + P
open the command paletteDown
move cursor downUp
move cursor up
Built-in magic commands
https://ipython.readthedocs.io/en/stable/interactive/magics.html#
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment