Skip to content

↑↓ moveEnter openEsc close

JupyterLab keyboard shortcuts

JupyterLab 4.4 · 39 shortcuts · checked Nov 2026 · Source: Project Jupyter docs

JupyterLab is the notebook interface from Project Jupyter. In command mode (Esc) single keys add, delete and change cells; in edit mode (Enter) you type in the cell. Jupyter Notebook 7 uses the same keys.

Most used JupyterLab keyboard shortcuts

The JupyterLab shortcuts worth learning first. The full list follows, grouped by task.

39 shortcuts

Small screen: your system's keys only. Pick another system in the tabs above.

Running cells

5 shortcuts
ActionMacWindowsLinux
Run the cell and select the nextShiftEnterShiftEnterShiftEnter
Run the cell and stayCmdEnterorCtrlEnterCtrlEnterCtrlEnter
Run the cell and insert one belowOptionEnterAltEnterAltEnter
Interrupt the kernelCommand modeI,II,II,I
Restart the kernelCommand mode0,00,00,0

Modes

2 shortcuts
ActionMacWindowsLinux
Enter command modeEdit modeEscEscEsc
Enter edit modeCommand modeEnterEnterEnter
ActionMacWindowsLinux
Insert a cell aboveCommand modeAAA
Insert a cell belowCommand modeBBB
Delete the cellCommand modeD,DD,DD,D
Cut the cellCommand modeXXX
Copy the cellCommand modeCCC
Paste the cell belowCommand modeVVV
Paste the cell aboveCommand modeShiftVShiftVShiftV
Undo the cell operationCommand modeZZZ
Redo the cell operationCommand modeShiftZShiftZShiftZ
Merge the selected cellsCommand modeShiftMShiftMShiftM
Change the cell to MarkdownCommand modeMMM
Change the cell to codeCommand modeYYY
Change the cell to rawCommand modeRRR
Make the cell a level 1 headingCommand mode111
Make the cell a level 2 headingCommand mode222
Select the cell aboveCommand mode↑orK↑orK↑orK
Select the cell belowCommand mode↓orJ↓orJ↓orJ
Extend the selection upCommand modeShift↑orShiftKShift↑orShiftKShift↑orShiftK
Extend the selection downCommand modeShift↓orShiftJShift↓orShiftJShift↓orShiftJ
Show or hide line numbersCommand modeShiftLShiftLShiftL
ActionMacWindowsLinux
Complete the codeEdit modeTabTabTab
Show the docstring tooltipEdit modeShiftTabShiftTabShiftTab
Comment or uncommentEdit modeCmd/Ctrl/Ctrl/
Split the cell at the cursorEdit modeShiftCmd-CtrlShift-CtrlShift-

Interface

8 shortcuts
ActionMacWindowsLinux
Open the command paletteShiftCmdCCtrlShiftCCtrlShiftC
Save the notebookCmdSCtrlSCtrlS
Show or hide the left sidebarCmdBCtrlBCtrlB
Show the file browserShiftCmdFCtrlShiftFCtrlShiftF
Toggle Simple Interface (one document)ShiftCmdDCtrlShiftDCtrlShiftD
Close the tabOptionWAltWAltW
Next tabShiftCmd]CtrlShift]CtrlShift]
Previous tabShiftCmd[CtrlShift[CtrlShift[
Show the key map: which keys JupyterLab uses mostDarker orange = used by more shortcuts

Insert, delete, move and convert cells in JupyterLab

These work in command mode: press Esc first so the cell has a blue bar and no cursor.

Run all cells
Run > Run All Cells has no default key; give it one in Settings > Settings Editor > Keyboard Shortcuts.

Comment, complete and split code in JupyterLab

Kernel, sidebar and tab shortcuts in JupyterLab

JupyterLab keyboard shortcuts: questions

What is the difference between command mode and edit mode in Jupyter?
In edit mode (press Enter) keys type into the cell. In command mode (press Esc) single keys act on whole cells: A and B add cells, D D deletes, M makes Markdown and Y makes code.
How do I change JupyterLab keyboard shortcuts?
Open Settings > Settings Editor > Keyboard Shortcuts, find the command and add or change its keys. In older versions, use the JSON Settings Editor and add an entry under shortcuts.
How do I start JupyterLab from the command line?
Run jupyter lab in a terminal; it opens in your browser. Install it first with pip install jupyterlab if the command is not found.

These are the default key bindings in JupyterLab 4.4, as published by Project Jupyter. Shortcuts that need an extension, an add-in or a changed keymap are left out. Where two combinations do the same thing, both are shown.

Single-system lists: JupyterLab keyboard shortcuts for Mac, JupyterLab keyboard shortcuts for Windows, JupyterLab keyboard shortcuts for Linux.

Each shortcut has its own page with the keys for every system, related shortcuts and the same action in other apps. The printable cheat sheet fits the whole list on one or two pages.