Keyboard Shortcuts#

Here is a list of some of the most handy keyboard shortcuts for our Jupyter Notebooks. There are two modes when editing a notebook, each with a different set of shortcuts:

  • Edit Mode: When you are editing the contents of a cell and can see a blinking cursor.

  • Command Mode: When you are not editing a cell and do not see a blinking cursor.

Don’t type the + (it means press both keys at once), and if you are on a PC, substitute Ctrl for ⌘.

Edit Mode: Inside a Cell w/ Blinking Cursor#

Shift + Enter

Run current cell

Esc

Enter command mode

⌘ + S

Save

⌘ + F

Find

⌘ + X

Cut

⌘ + C

Copy

⌘ + V

Paste

⌘ + Z

Undo

Tab

Code Completion (or indent if at start of line)

⌘ + ]

Indent

⌘ + [

Dedent

⌘ + /

Toggle comment

Ctrl + Shift + -

Split the active cell at the cursor

Command Mode: Outside Cells w/ No Blinking Cursor#

Shift + Enter

Run selected cell or cells

Enter

Enter edit mode in the active cell

⌘ + S

Save

⌘ + F

Find

Up Arrow

Scroll up

Down Arrow

Scroll down

Shift + Up Arrow

Select the current cell and the cell above

Shift + Down Arrow

Select the current cell and the cell below

⌘ + A

Select all cells

X

Cut the selected cell(s)

C

Copy the selected cell(s)

V

Paste cell(s)

D D (D twice)

Delete the selected cell(s)

Z

Undo most recent action

A

Insert a new cell above the active cell

B

Insert a new cell below the active cell

M

Make the active cell a Markdown cell

Y

Make the active cell a code cell

Shift + M

Merge multiple selected cells into one cell