Last active
November 24, 2018 08:29
-
-
Save mshytikov/bfca51c800919b1d1c3402ac4003ad37 to your computer and use it in GitHub Desktop.
JupyterLab_Keyboard_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
{ | |
"nbformat": 4, | |
"nbformat_minor": 0, | |
"metadata": { | |
"colab": { | |
"name": "JupyterLab Keyboard Shortcuts.ipynb", | |
"version": "0.3.2", | |
"provenance": [], | |
"collapsed_sections": [] | |
}, | |
"kernelspec": { | |
"name": "python3", | |
"display_name": "Python 3" | |
} | |
}, | |
"cells": [ | |
{ | |
"metadata": { | |
"id": "OxlIxIR6wkHU", | |
"colab_type": "code", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 2932 | |
}, | |
"outputId": "d00192be-d68e-47ed-f1c9-207c5349b341" | |
}, | |
"cell_type": "code", | |
"source": [ | |
"import requests\n", | |
"import pandas as pd\n", | |
"\n", | |
"url = \"https://raw.githubusercontent.com/jupyterlab/jupyterlab/master/packages/shortcuts-extension/schema/plugin.json\"\n", | |
"resp = requests.get(url=url)\n", | |
"data = resp.json()\n", | |
"\n", | |
"df = pd.DataFrame(data[\"properties\"])\n", | |
"df = pd.concat(df.loc[\"properties\"].apply(lambda x: pd.DataFrame(x)).values)\n", | |
"df = df.set_index([\"category\", \"title\"]).sort_index()[[\"keys\"]]\n", | |
"\n", | |
"with pd.option_context(\"display.max_rows\",100):\n", | |
" display(df)" | |
], | |
"execution_count": 3, | |
"outputs": [ | |
{ | |
"output_type": "display_data", | |
"data": { | |
"text/html": [ | |
"<div>\n", | |
"<style scoped>\n", | |
" .dataframe tbody tr th:only-of-type {\n", | |
" vertical-align: middle;\n", | |
" }\n", | |
"\n", | |
" .dataframe tbody tr th {\n", | |
" vertical-align: top;\n", | |
" }\n", | |
"\n", | |
" .dataframe thead th {\n", | |
" text-align: right;\n", | |
" }\n", | |
"</style>\n", | |
"<table border=\"1\" class=\"dataframe\">\n", | |
" <thead>\n", | |
" <tr style=\"text-align: right;\">\n", | |
" <th></th>\n", | |
" <th></th>\n", | |
" <th>keys</th>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>category</th>\n", | |
" <th>title</th>\n", | |
" <th></th>\n", | |
" </tr>\n", | |
" </thead>\n", | |
" <tbody>\n", | |
" <tr>\n", | |
" <th rowspan=\"3\" valign=\"top\">Completer</th>\n", | |
" <th>Invoke Console Completion</th>\n", | |
" <td>[Tab]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Invoke File Completion</th>\n", | |
" <td>[Tab]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Invoke Notebook Completion</th>\n", | |
" <td>[Tab]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th rowspan=\"2\" valign=\"top\">Console</th>\n", | |
" <th>Insert Line Break</th>\n", | |
" <td>[Enter]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Run Cell (forced)</th>\n", | |
" <td>[Shift Enter]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th rowspan=\"6\" valign=\"top\">Editing</th>\n", | |
" <th>Clear</th>\n", | |
" <td>[]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Clear All</th>\n", | |
" <td>[]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Find</th>\n", | |
" <td>[]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Find and Replace</th>\n", | |
" <td>[]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Redo</th>\n", | |
" <td>[Ctrl Shift Z]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Undo</th>\n", | |
" <td>[Ctrl Z]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th rowspan=\"5\" valign=\"top\">File Operations</th>\n", | |
" <th>Close Activity</th>\n", | |
" <td>[Ctrl Q]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>New Launcher</th>\n", | |
" <td>[Accel Shift L]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Save</th>\n", | |
" <td>[Accel S]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Save As</th>\n", | |
" <td>[Accel Shift S]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Toggle Filebrowser</th>\n", | |
" <td>[Accel Shift F]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Help</th>\n", | |
" <th>Toggle Help</th>\n", | |
" <td>[Ctrl Shift H]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th rowspan=\"8\" valign=\"top\">Image Viewer</th>\n", | |
" <th>Flip Image Horizontally</th>\n", | |
" <td>[H]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Flip Image Vertically</th>\n", | |
" <td>[V]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Invert Colors</th>\n", | |
" <td>[I]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Reset Image</th>\n", | |
" <td>[0]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Rotate Clockwise</th>\n", | |
" <td>[]]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Rotate Counterclockwise</th>\n", | |
" <td>[[]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Zoom In</th>\n", | |
" <td>[=]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Zoom Out</th>\n", | |
" <td>[-]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Inspector</th>\n", | |
" <th>Open Inspector</th>\n", | |
" <td>[Accel I]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th rowspan=\"4\" valign=\"top\">Kernel Operations</th>\n", | |
" <th>Interrupt Kernel</th>\n", | |
" <td>[I, I]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Restart Kernel</th>\n", | |
" <td>[0, 0]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Restart Kernel and Clear</th>\n", | |
" <td>[]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Shutdown Kernel</th>\n", | |
" <td>[]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th rowspan=\"10\" valign=\"top\">Main Area</th>\n", | |
" <th>Activate Command Palette</th>\n", | |
" <td>[Accel Shift C]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Activate Next Tab</th>\n", | |
" <td>[Ctrl Shift ]]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Activate Previous Tab</th>\n", | |
" <td>[Ctrl Shift []</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Activate Previously Used Tab</th>\n", | |
" <td>[Accel Shift ']</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>New Launcher</th>\n", | |
" <td>[]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Open Keyboard Shortcut Settings</th>\n", | |
" <td>[Ctrl Shift /]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Toggle Left Area</th>\n", | |
" <td>[Accel B]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Toggle Presentation Mode</th>\n", | |
" <td>[]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Toggle Right Area</th>\n", | |
" <td>[]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Toggle Single-Document Mode</th>\n", | |
" <td>[Accel Shift D]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th rowspan=\"32\" valign=\"top\">Notebook Cell Operations</th>\n", | |
" <th>Change to Code Cell Type</th>\n", | |
" <td>[Y]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Change to Heading 1</th>\n", | |
" <td>[1]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Change to Heading 2</th>\n", | |
" <td>[2]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Change to Heading 3</th>\n", | |
" <td>[3]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Change to Heading 4</th>\n", | |
" <td>[4]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Change to Heading 5</th>\n", | |
" <td>[5]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Change to Heading 6</th>\n", | |
" <td>[6]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Change to Markdown Cell Type</th>\n", | |
" <td>[M]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Change to Raw Cell Type</th>\n", | |
" <td>[R]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Copy Cell(s)</th>\n", | |
" <td>[C]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Cut Cell(s)</th>\n", | |
" <td>[X]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Delete Cell(s)</th>\n", | |
" <td>[D, D]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Extend Selection Above</th>\n", | |
" <td>[Shift ArrowUp]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Extend Selection Above</th>\n", | |
" <td>[Shift K]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Extend Selection Below</th>\n", | |
" <td>[Shift ArrowDown]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Extend Selection Below</th>\n", | |
" <td>[Shift J]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Insert Cell Above</th>\n", | |
" <td>[A]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Insert Cell Below</th>\n", | |
" <td>[B]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Merge Selected Cells</th>\n", | |
" <td>[Shift M]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Move Cursor Down</th>\n", | |
" <td>[ArrowDown]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Move Cursor Down</th>\n", | |
" <td>[J]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Move Cursor Up</th>\n", | |
" <td>[ArrowUp]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Move Cursor Up</th>\n", | |
" <td>[K]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Paste Cell(s) Below</th>\n", | |
" <td>[V]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Redo Cell Operation</th>\n", | |
" <td>[Shift Z]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Run Cell(s)</th>\n", | |
" <td>[Ctrl Enter]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Run Cell(s) and Insert Below</th>\n", | |
" <td>[Alt Enter]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Run In Console</th>\n", | |
" <td>[]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Select All Cells</th>\n", | |
" <td>[Accel A]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Toggle All Cell Line Numbers</th>\n", | |
" <td>[Shift L]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Toggle Cell Line Numbers</th>\n", | |
" <td>[L]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Undo Cell Operation</th>\n", | |
" <td>[Z]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th rowspan=\"9\" valign=\"top\">Notebook Operations</th>\n", | |
" <th>Enter Command Mode</th>\n", | |
" <td>[Escape]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Enter Command Mode</th>\n", | |
" <td>[Ctrl M]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Enter Edit Mode</th>\n", | |
" <td>[Enter]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Match Brackets</th>\n", | |
" <td>[]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Run Cell and Insert Below</th>\n", | |
" <td>[Alt Enter]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Run Cell and Select Next</th>\n", | |
" <td>[Shift Enter]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Run Cell(s)</th>\n", | |
" <td>[Ctrl Enter]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Show Line Numbers</th>\n", | |
" <td>[]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Split Cell at Cursor</th>\n", | |
" <td>[Ctrl Shift -]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th rowspan=\"3\" valign=\"top\">Run Menu</th>\n", | |
" <th>Restart Kernel and Run All</th>\n", | |
" <td>[]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Run</th>\n", | |
" <td>[Shift Enter]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Run All</th>\n", | |
" <td>[]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th rowspan=\"3\" valign=\"top\">Settings Editor</th>\n", | |
" <th>Open Debugger</th>\n", | |
" <td>[Accel I]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Open Settings Editor</th>\n", | |
" <td>[Accel ,]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Save Settings</th>\n", | |
" <td>[Accel S]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th rowspan=\"5\" valign=\"top\">Tooltips</th>\n", | |
" <th>Dismiss Completer</th>\n", | |
" <td>[Escape]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Dismiss Completer</th>\n", | |
" <td>[Escape]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Invoke Completer</th>\n", | |
" <td>[Shift Tab]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Invoke Completer</th>\n", | |
" <td>[Shift Tab]</td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th>Invoke Completer</th>\n", | |
" <td>[Shift Tab]</td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
"</table>\n", | |
"</div>" | |
], | |
"text/plain": [ | |
" keys\n", | |
"category title \n", | |
"Completer Invoke Console Completion [Tab]\n", | |
" Invoke File Completion [Tab]\n", | |
" Invoke Notebook Completion [Tab]\n", | |
"Console Insert Line Break [Enter]\n", | |
" Run Cell (forced) [Shift Enter]\n", | |
"Editing Clear []\n", | |
" Clear All []\n", | |
" Find []\n", | |
" Find and Replace []\n", | |
" Redo [Ctrl Shift Z]\n", | |
" Undo [Ctrl Z]\n", | |
"File Operations Close Activity [Ctrl Q]\n", | |
" New Launcher [Accel Shift L]\n", | |
" Save [Accel S]\n", | |
" Save As [Accel Shift S]\n", | |
" Toggle Filebrowser [Accel Shift F]\n", | |
"Help Toggle Help [Ctrl Shift H]\n", | |
"Image Viewer Flip Image Horizontally [H]\n", | |
" Flip Image Vertically [V]\n", | |
" Invert Colors [I]\n", | |
" Reset Image [0]\n", | |
" Rotate Clockwise []]\n", | |
" Rotate Counterclockwise [[]\n", | |
" Zoom In [=]\n", | |
" Zoom Out [-]\n", | |
"Inspector Open Inspector [Accel I]\n", | |
"Kernel Operations Interrupt Kernel [I, I]\n", | |
" Restart Kernel [0, 0]\n", | |
" Restart Kernel and Clear []\n", | |
" Shutdown Kernel []\n", | |
"Main Area Activate Command Palette [Accel Shift C]\n", | |
" Activate Next Tab [Ctrl Shift ]]\n", | |
" Activate Previous Tab [Ctrl Shift []\n", | |
" Activate Previously Used Tab [Accel Shift ']\n", | |
" New Launcher []\n", | |
" Open Keyboard Shortcut Settings [Ctrl Shift /]\n", | |
" Toggle Left Area [Accel B]\n", | |
" Toggle Presentation Mode []\n", | |
" Toggle Right Area []\n", | |
" Toggle Single-Document Mode [Accel Shift D]\n", | |
"Notebook Cell Operations Change to Code Cell Type [Y]\n", | |
" Change to Heading 1 [1]\n", | |
" Change to Heading 2 [2]\n", | |
" Change to Heading 3 [3]\n", | |
" Change to Heading 4 [4]\n", | |
" Change to Heading 5 [5]\n", | |
" Change to Heading 6 [6]\n", | |
" Change to Markdown Cell Type [M]\n", | |
" Change to Raw Cell Type [R]\n", | |
" Copy Cell(s) [C]\n", | |
" Cut Cell(s) [X]\n", | |
" Delete Cell(s) [D, D]\n", | |
" Extend Selection Above [Shift ArrowUp]\n", | |
" Extend Selection Above [Shift K]\n", | |
" Extend Selection Below [Shift ArrowDown]\n", | |
" Extend Selection Below [Shift J]\n", | |
" Insert Cell Above [A]\n", | |
" Insert Cell Below [B]\n", | |
" Merge Selected Cells [Shift M]\n", | |
" Move Cursor Down [ArrowDown]\n", | |
" Move Cursor Down [J]\n", | |
" Move Cursor Up [ArrowUp]\n", | |
" Move Cursor Up [K]\n", | |
" Paste Cell(s) Below [V]\n", | |
" Redo Cell Operation [Shift Z]\n", | |
" Run Cell(s) [Ctrl Enter]\n", | |
" Run Cell(s) and Insert Below [Alt Enter]\n", | |
" Run In Console []\n", | |
" Select All Cells [Accel A]\n", | |
" Toggle All Cell Line Numbers [Shift L]\n", | |
" Toggle Cell Line Numbers [L]\n", | |
" Undo Cell Operation [Z]\n", | |
"Notebook Operations Enter Command Mode [Escape]\n", | |
" Enter Command Mode [Ctrl M]\n", | |
" Enter Edit Mode [Enter]\n", | |
" Match Brackets []\n", | |
" Run Cell and Insert Below [Alt Enter]\n", | |
" Run Cell and Select Next [Shift Enter]\n", | |
" Run Cell(s) [Ctrl Enter]\n", | |
" Show Line Numbers []\n", | |
" Split Cell at Cursor [Ctrl Shift -]\n", | |
"Run Menu Restart Kernel and Run All []\n", | |
" Run [Shift Enter]\n", | |
" Run All []\n", | |
"Settings Editor Open Debugger [Accel I]\n", | |
" Open Settings Editor [Accel ,]\n", | |
" Save Settings [Accel S]\n", | |
"Tooltips Dismiss Completer [Escape]\n", | |
" Dismiss Completer [Escape]\n", | |
" Invoke Completer [Shift Tab]\n", | |
" Invoke Completer [Shift Tab]\n", | |
" Invoke Completer [Shift Tab]" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
} | |
} | |
] | |
}, | |
{ | |
"metadata": { | |
"id": "QVhLLzVDwk2_", | |
"colab_type": "code", | |
"colab": {} | |
}, | |
"cell_type": "code", | |
"source": [ | |
"" | |
], | |
"execution_count": 0, | |
"outputs": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment