Created
April 19, 2017 14:51
-
-
Save jakevdp/932c9a4ae9a4287f19927e9062bff5e7 to your computer and use it in GitHub Desktop.
Jupyter Shortcuts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Mac OS X keymap:\n", | |
"\n", | |
"- ⌘ : Command\n", | |
"- ⌃ : Control\n", | |
"- ⌥ : Option\n", | |
"- ⇧ : Shift\n", | |
"- ↩ : Return\n", | |
"- ␣ : Space\n", | |
"- ⇥ : Tab" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"collapsed": true | |
}, | |
"source": [ | |
"## Linux/PC keymap:\n", | |
"\n", | |
"- ⌘ : Control\n", | |
"- ⌃ : Control\n", | |
"- ⌥ : Alt\n", | |
"- ⇧ : Shift\n", | |
"- ↩ : Return\n", | |
"- ␣ : Space\n", | |
"- ⇥ : Tab" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Command mode shortcuts\n", | |
"\n", | |
"- ↩: enter edit mode\n", | |
"\n", | |
"- F : find and replace\n", | |
"- ⌘⇧P: open the command palette\n", | |
"- ⇧↩: run cell, select below\n", | |
"- ⌃↩: run selected cells\n", | |
"- ⌥↩: run cell, insert below\n", | |
"- Y: to code\n", | |
"- M: to markdown\n", | |
"- R: to raw\n", | |
"- 1: to heading 1\n", | |
"- 2: to heading 2\n", | |
"- 3: to heading 3\n", | |
"- 4: to heading 4\n", | |
"- 5: to heading 5\n", | |
"- 6: to heading 6\n", | |
"- K: select cell above\n", | |
"- ↑: select cell above\n", | |
"- ↓: select cell below\n", | |
"- J: select cell below\n", | |
"- ⇧K: extend selected cells above\n", | |
"- ⇧↑: extend selected cells above\n", | |
"- ⇧↓: extend selected cells below\n", | |
"- ⇧J: extend selected cells below\n", | |
"- A: insert cell above\n", | |
"- B: insert cell below\n", | |
"- X: cut selected cells\n", | |
"- C: copy selected cells\n", | |
"- ⇧V: paste cells above\n", | |
"- V: paste cells below\n", | |
"- Z: undo cell deletion\n", | |
"- D,D: delete selected cells\n", | |
"- ⇧M: merge selected cells, or current cell with cell below if only one cell selected\n", | |
"- ⌘S: Save and Checkpoint\n", | |
"- S: Save and Checkpoint\n", | |
"- L: toggle line numbers\n", | |
"- O: toggle output of selected cells\n", | |
"- ⇧O: toggle output scrolling of selected cells\n", | |
"- H: show keyboard shortcuts\n", | |
"- I,I: interrupt kernel\n", | |
"- 0,0: restart the kernel (with dialog)\n", | |
"- Esc: close the pager\n", | |
"- Q: close the pager\n", | |
"- ⇧␣: scroll notebook up\n", | |
"- ␣: scroll notebook down" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Edit mode shortcuts\n", | |
"\n", | |
"- ESC: switch to command mode\n", | |
"- ⇥: code completion or indent\n", | |
"- ⇧⇥: tooltip\n", | |
"- ⌘]: indent\n", | |
"- ⌘[: dedent\n", | |
"- ⌘A: select all\n", | |
"- ⌘Z: undo\n", | |
"- ⌘⇧Z: redo\n", | |
"- ⌘Y: redo\n", | |
"- ⌃M: command mode\n", | |
"- Esc: command mode\n", | |
"- ⌘⇧P: open the command palette\n", | |
"- ⇧↩: run cell, select below\n", | |
"- ⌃↩: run selected cells\n", | |
"- ⌥↩: run cell, insert below\n", | |
"- ⌃⇧Minus: split cell\n", | |
"- ⌘S: Save and Checkpoint\n", | |
"- ↓: move cursor down\n", | |
"- ↑: move cursor up\n", | |
"\n", | |
"### Edit Mode: OSX only\n", | |
"\n", | |
"- ⌘↑: go to cell start\n", | |
"- ⌘↓: go to cell end\n", | |
"- ⌥←: go one word left\n", | |
"- ⌥→: go one word right\n", | |
"- ⌥⌫: delete word before\n", | |
"- ⌥⌦: delete word after\n", | |
"\n", | |
"### Edit Mode: Linux/PC\n", | |
"\n", | |
"- ⌃Home: got to cell start\n", | |
"- ⌃↑: go to cell start\n", | |
"- ⌃End: go to cell end\n", | |
"- ⌃↓: go to cell end\n", | |
"- ⌃←: go one word left\n", | |
"- ⌃→: go one word right\n", | |
"- ⌃⌫: delete word before\n", | |
"- ⌃⌦: delete word after" | |
] | |
} | |
], | |
"metadata": { | |
"anaconda-cloud": {}, | |
"kernelspec": { | |
"display_name": "Python [default]", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.5.1" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment