If you are on a Mac, substitute command for control. Don't type the + (it means press both keys at once).
-
Shift+Enterrun selected cell or cells - if no cells below, insert a code cell below -
Ctrl+Btoggle hide/show left sidebar -
Ctrl+Ssave and checkpoint -
Ctrl+Shift+Ssave as -
Ctrl+Ffind
-
Enterenter edit mode in the active cell -
Scroll up with the up arrow
-
Scroll down with the down arrow
-
Ainsert a new cell above the active cell -
Binsert a new cell below the active cell -
Mmake the active cell a Markdown cell -
Ymake the active cell a code cell -
Shift+Up Arrowselect the current cell and the cell above -
Shift+Down Arrowselect the current cell and the cell below -
Ctrl+Aselect all cells -
Xcut the selected cell or cells -
Ccopy the selected cell or cells -
Vpaste the cell(s) which were copied or cut most recently -
Shift + Mmerge multiple selected cells into one cell -
DD(Dtwice) delete the active cell -
00(Zero twice) restart the kernel -
Zundo most recent command mode action
-
Escenter command mode -
Tabcode completion (or indent if at start of line) -
Shift+Tabtooltip help -
Ctrl+Shift+-split the active cell at the cursor
The usual commands for code editors:
-
Ctrl+]indent -
Ctrl+[dedent -
Ctrl+/toggle comment
Plus the usual shortcuts for select all, cut, copy, paste, undo, etc.
@nick-youngblut From what I know about assigning shortcuts in Jupyterlab, we first need to find the corresponding action from either the menu or the Command Platte. For example, here is what I use to resume the
Alt+Rmapping in newer Jupyterlab installation:Then, to switch directly to the Table of Contents menu that resides in the sidebar, we need to find a way to switch to TOC without clicking on that button. For now, I don't find anything relevant.
There is a clunky way to achieve it: use AutoHotKey to assign a Jupyterlab-only shortcut (say,
Ctrl+T) that searches for the pixel patterns of that TOC button. For pixel search, I would use FindText. Alternatively, one can write a Userscript with a proper scope (domain), and simulate the mouse-click on the button withid="tab-key-5"and assign such action to a keyboard shortcut to be loaded using that user script.