Jupyterlab keyboard shortcuts#
By default the shortcuts for JupyterLab are the same as for the traditional notebook.
But keyboards shortcuts are hard to find using the help
from the JupyterLab environment.
The default keyboard shortcuts are:
Keyboard shortcuts
The JupyterLab Notebook has two different keyboard input modes:
1- Edit mode allows you to type code or text into a cell.
2- Command mode binds the keyboard to notebook level commands.
1- Edit mode allows you to type code or text into a cell.
2- Command mode binds the keyboard to notebook level commands.
Command Mode (press Esc to enable)
F : find and replaceCtrl-Shift-F : open the command paletteCtrl-Shift-P : open the command paletteEnter : enter edit modeP : open the command paletteShift-Enter : run cell, select belowCtrl-Enter : run selected cellsAlt-Enter : run cell and insert belowY : change cell to codeM : change cell to markdownR : change cell to raw1 : change cell to heading 12 : change cell to heading 23 : change cell to heading 34 : change cell to heading 45 : change cell to heading 56 : change cell to heading 6K : select cell aboveUp : select cell aboveDown : select cell belowJ : select cell belowShift-K : extend selected cells aboveShift-Up : extend selected cells aboveShift-Down : extend selected cells belowShift-J : extend selected cells belowCtrl-A : select all cellsA : insert cell aboveB : insert cell belowX : cut selected cellsC : copy selected cellsShift-V : paste cells aboveV : paste cells belowZ : undo cell deletionD,D : delete selected cellsShift-M : merge selected cells, or current cell with cell below if only one cell is selectedCtrl-S : Save and CheckpointS : Save and CheckpointL : toggle line numbersO : toggle output of selected cellsShift-O : toggle output scrolling of selected cellsH : show keyboard shortcutsI,I : interrupt the kernel0,0 : restart the kernel (with dialog)Ctrl-V : Dialog for paste from system clipboardEsc : close the pagerQ : close the pagerShift-L : toggles line numbers in all cells, and persist the settingShift-Space : scroll notebook upSpace : scroll notebook down
F : find and replace
Ctrl-Shift-F : open the command palette
Ctrl-Shift-P : open the command palette
Enter : enter edit mode
P : open the command palette
Shift-Enter : run cell, select below
Ctrl-Enter : run selected cells
Alt-Enter : run cell and insert below
Y : change cell to code
M : change cell to markdown
R : change cell to raw
1 : change cell to heading 1
2 : change cell to heading 2
3 : change cell to heading 3
4 : change cell to heading 4
5 : change cell to heading 5
6 : change cell to heading 6
K : select cell above
Up : select cell above
Down : select cell below
J : select cell below
Shift-K : extend selected cells above
Shift-Up : extend selected cells above
Shift-Down : extend selected cells below
Edit Mode (press Enter to enable)
Tab : code completion or indent
Shift-Tab : tooltip
Ctrl-] : indent
Ctrl-[ : dedent
Ctrl-A : select all
Ctrl-Z : undo
Ctrl-/ : comment
Ctrl-D : delete whole line
Ctrl-U : undo selection
Insert : toggle overwrite flag
Ctrl-Home : go to cell start
Ctrl-Up : go to cell start
Ctrl-End : go to cell end
Ctrl-Down : go to cell end
Ctrl-Left : go one word left
Ctrl-Right : go one word right
Ctrl-Backspace : delete word before
Ctrl-Delete : delete word after
Ctrl-Y : redo
Alt-U : redo selection
Ctrl-M : enter command mode
Ctrl-Shift-F : open the command palette
Ctrl-Shift-P : open the command palette
Esc : enter command mode
Shift-Enter : run cell, select below
Ctrl-Enter : run selected cells
Alt-Enter : run cell and insert below
Ctrl-Shift-Minus : split cell at cursor(s)
Ctrl-S : Save and Checkpoint
Down : move cursor down
Up : move cursor up