Overview Here are some shortcuts that you should keep to a minimum when using JupyterLab. Shortcuts common to Mac and those installed in general editors are omitted and will be updated at any time.
⇧: Shift key ⌥: Option key ⌘: Command key ⇥: tab key ↩︎: Enter (return) key
| command | operation | 
|---|---|
| Y | Switch the target cell to Code type | 
| M | Switch the target cell to Markdown type | 
| R | Switch the target cell to Raw type | 
| ↩︎ | Switch to edit mode for the target cell | 
| ^M, ESC | Return from edit mode to command mode | 
| D, D | Delete the selected cell (in command mode) | 
| ⌘ + S | Save | 
| command | operation | 
|---|---|
| j | Move cursor down (only in command mode) | 
| k | Move the cursor up (only in command mode) | 
| ⌥ + ⇥ | Move down cell in edit mode (only in edit mode) | 
| ⇧ + ⌥ + ⇥ | Move the cell in edit mode up (only in edit mode) | 
| command | operation | 
|---|---|
| ⌘ + / | Comment out | 
| ⇥ | Input completion, display of candidates | 
| ⇧ + ⇥ | Show method definition | 
It was surprising that input completion worked.
Displaying method definitions is convenient because options etc. are also displayed.

| command | operation | 
|---|---|
| ^ + ↩︎ | Run (do not move) cell | 
| ⇧ + ↩︎ | Run cell and move to lower cell | 
| ⌥ + ↩︎ | Execute cell and create new cell below | 
Shortcuts can be customized from Settings> Advanced Settings Editor (⌘ +,)> Keyboard Shortcuts.
Details will be provided at a later date.
Recommended Posts