JupyterLab keyboard shortcuts
Notebook cells, command mode, running code, and the workspace in JupyterLab.
57 shortcuts Mac and Windows checked September 14, 2026
Print all 57 shortcuts One sheet with every shortcut in this app, ready for the printer or a PDF.
- JupyterLab Documented
| Action | Keys | Row actions |
|---|---|---|
| Change the cell to code Notebook, command mode | Mac Y 1 more variant | Source |
| Change the cell to Markdown Notebook, command mode | Mac M 1 more variant | Source |
| Change the cell to raw Notebook, command mode | Mac R 1 more variant | Source |
| Make the Markdown cell a level one heading Markdown cell, command mode | Mac 1 1 more variant | Source |
| Make the Markdown cell a level two heading Markdown cell, command mode | Mac 2 1 more variant | Source |
| Copy the cell Notebook, command mode | Mac C 1 more variant | Source |
| Cut the cell Notebook, command mode | Mac X 1 more variant | Source |
| Delete the cell Notebook, command mode | Mac DD 1 more variant | Source |
| Return to command mode Notebook, edit mode | Mac Esc 1 more variant | Source |
| Start editing the cell Notebook, command mode | Mac Enter 1 more variant | Source |
| Extend the selection to the cell above Notebook, command mode | Mac ShiftUp arrow 1 more variant | Source |
| Extend the selection to the cell below Notebook, command mode | Mac ShiftDown arrow 1 more variant | Source |
| Extend the selection to the top Notebook, command mode | Mac ShiftHome 1 more variant | Source |
| Extend the selection to the bottom Notebook, command mode | Mac ShiftEnd 1 more variant | Source |
| Insert a cell above Notebook, command mode | Mac A 1 more variant | Source |
| Insert a cell below Notebook, command mode | Mac B 1 more variant | Source |
| Merge the selected cells Notebook, command mode | Mac ShiftM 1 more variant | Source |
| Merge with the cell above Notebook, command mode | Mac CtrlBackspace 1 more variant | Source |
| Merge with the cell below Notebook, command mode | Mac CtrlShiftM 1 more variant | Source |
| Select the cell below Notebook, command mode | Mac Down arrow 1 more variant | Source |
| Select the cell above Notebook, command mode | Mac Up arrow 1 more variant | Source |
| Collapse the heading or go to the one above Notebook, command mode | Mac Left arrow 1 more variant | Source |
| Expand the heading or go to the one below Notebook, command mode | Mac Right arrow 1 more variant | Source |
| Insert a heading above Notebook, command mode | Mac ShiftA 1 more variant | Source |
| Insert a heading below Notebook, command mode | Mac ShiftB 1 more variant | Source |
| Collapse every heading Notebook, command mode | Mac CtrlShiftLeft arrow 1 more variant | Source |
| Expand every heading Notebook, command mode | Mac CtrlShiftRight arrow 1 more variant | Source |
| Paste the cell below Notebook, command mode | Mac V 1 more variant | Source |
| Redo a cell action Notebook, command mode | Mac ShiftZ 1 more variant | Source |
| Undo a cell action Notebook, command mode | Mac Z 1 more variant | Source |
About JupyterLab and its shortcuts
JupyterLab has two keyboard worlds, and most confusion about it comes from not knowing which one you are in. In command mode the keys act on cells: adding, deleting, moving, changing type. In edit mode they act on the text inside a cell. Running a cell is the bridge between them, and almost everything else follows from that split.
JupyterLab runs in a browser, so the browser takes some combinations first, and the classic Notebook interface does not share every binding. Extensions can add and rebind commands.
Where the JupyterLab keys came from
Read from 1 documentation page published by the makers of JupyterLab. Report a key that is wrong
To see how one action is done in other apps as well as JupyterLab, browse the shortcuts by task. Shortcuts by task