Created
September 2, 2025 00:35
-
-
Save radekosmulski/3987af773512770a1b74f815b4c962e8 to your computer and use it in GitHub Desktop.
Visual Studio Code keybidings for managing Jupyter Notebook kernels and moving around
This file contains hidden or 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
[ | |
{ | |
"key": "ctrl+j a", | |
"command": "jupyter.runallcellsabove" | |
}, | |
{ | |
"key": "ctrl+j r", | |
"command": "jupyter.notebookeditor.restartkernel" | |
}, | |
{ | |
"key": "ctrl+j u", | |
"command": "jupyter.runallcellsabove.palette" | |
}, | |
{ | |
"key": "ctrl+alt+m", | |
"command": "workbench.action.toggleMaximizedPanel" | |
}, | |
{ | |
"key": "cmd+down", | |
"command": "-workbench.action.terminal.focus", | |
"when": "accessibilityModeEnabled && accessibleViewOnLastLine && terminalHasBeenCreated && accessibleViewCurrentProviderId == 'terminal' || accessibilityModeEnabled && accessibleViewOnLastLine && terminalProcessSupported && accessibleViewCurrentProviderId == 'terminal'" | |
}, | |
{ | |
"key": "shift+cmd+e", | |
"command": "-workbench.view.explorer", | |
"when": "viewContainer.workbench.view.explorer.enabled" | |
}, | |
{ | |
"key": "ctrl+`", | |
"command": "workbench.action.terminal.focus" | |
}, | |
{ | |
"key": "shift+enter", | |
"command": "-editor.action.previousMatchFindAction", | |
"when": "editorFocus && findInputFocussed" | |
}, | |
{ | |
"key": "shift+enter", | |
"command": "-jupyter.execSelectionInteractive", | |
"when": "editorTextFocus && isWorkspaceTrusted && jupyter.ownsSelection && !findInputFocussed && !isCompositeNotebook && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python'" | |
}, | |
{ | |
"key": "shift+enter", | |
"command": "-python.execInREPL", | |
"when": "config.python.REPL.sendToNativeREPL && editorTextFocus && !isCompositeNotebook && !jupyter.ownsSelection && !notebookEditorFocused && editorLangId == 'python'" | |
}, | |
{ | |
"key": "shift+enter", | |
"command": "-python.execSelectionInTerminal", | |
"when": "editorTextFocus && !findInputFocussed && !isCompositeNotebook && !jupyter.ownsSelection && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python'" | |
}, | |
{ | |
"key": "shift+enter", | |
"command": "-workbench.action.terminal.findNext", | |
"when": "terminalFindInputFocused && terminalHasBeenCreated || terminalFindInputFocused && terminalProcessSupported" | |
}, | |
{ | |
"key": "shift+enter", | |
"command": "-repl.execute", | |
"when": "config.interactiveWindow.executeWithShiftEnter && isCompositeNotebook && !notebookCellListFocused && activeEditor == 'workbench.editor.repl'" | |
}, | |
{ | |
"key": "shift+enter", | |
"command": "-workbench.action.terminal.sendSequence", | |
"when": "terminalFocus && terminalShellIntegrationEnabled && !accessibilityModeEnabled && terminalShellType == 'pwsh'" | |
}, | |
{ | |
"key": "shift+enter", | |
"command": "workbench.action.terminal.sendSequence", | |
"args": { | |
"text": "\\\r\n" | |
}, | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "0 0", | |
"command": "jupyter.restartkernel", | |
"when": "notebookType == 'jupyter-notebook' && !inputFocus" | |
}, | |
{ | |
"key": "9 9", | |
"command": "runCommands", | |
"args": { | |
"commands": [ | |
{ | |
"command": "notebook.clearAllCellsOutputs", | |
}, | |
{ | |
"command": "jupyter.restartkernelandrunuptoselectedcell", | |
}, | |
] | |
}, | |
"when": "notebookType == 'jupyter-notebook' && !inputFocus" | |
}, | |
{ | |
"key": "8 8", | |
"command": "runCommands", | |
"args": { | |
"commands": [ | |
{ | |
"command": "notebook.clearAllCellsOutputs", | |
}, | |
{ | |
"command": "jupyter.restartkernelandrunallcells", | |
}, | |
] | |
}, | |
"when": "notebookType == 'jupyter-notebook' && !inputFocus" | |
}, | |
{ | |
"key": "shift+m", | |
"command": "notebook.cell.joinSelected", | |
"when": "notebookType == 'jupyter-notebook' && !inputFocus" | |
}, | |
{ | |
"key": "i i", | |
"command": "jupyter.interruptkernel", | |
"when": "notebookType == 'jupyter-notebook' && !inputFocus" | |
}, | |
{ | |
"key": "ctrl+1", | |
"command": "workbench.action.focusActiveEditorGroup" | |
}, | |
{ | |
"key": "ctrl+2", | |
"command": "workbench.panel.chat.view.copilot.focus" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment