Do you have keyboard shortcuts?


We have keyboard shortcuts for the most common actions:

Windows/Linux Mac
Running code alt + enter option + return
Open console alt +  t option + t
Restore initial code alt + r option + r
Move to next step alt + n option + n
Move to previous step alt + b option + b

If you forget the shortcuts, you can mouseover the buttons to show tooltips as shown in the image below.

Edit multiple lines at once

Sometimes it's useful to be able to edit multiple lines at once, e.g, if you want to comment out a code segment.  To select multiple lines at once:

  • While holding down the option (mac) or alt (PC) key, click and drag with your mouse to select the lines you want to edit.
  • Use the left or right arrow keys to create a multi-line cursor.
  • Make the changes you want to the lines - for instance, you might navigate to the start of the line and add or remove line comments.

Shortcuts in Jupyter Guided Projects

We also recommend using keyboard shortcuts in our guided projects with Jupyter notebook. Jupyter stores a list of keyboard shortcuts under the menu at the top: Help > Keyboard Shortcuts, or by pressing h in command mode.

You can also read more tips in our blog post: Jupyter Notebook Tips, Tricks and Shortcuts.