Custom Start/Stop buttons in the jupyter notebook tool bar #16579
-
Is it possible to add custom buttons to the tool bar? We'd like to add a start and stop button to provide extra functionality tied to those interactions. ![]() |
Beta Was this translation helpful? Give feedback.
Answered by
DonJayamanne
Apr 28, 2025
Replies: 1 comment 2 replies
-
Yes it is, have a look at the "notebook/toolbar": [
{
"command": "jupyter.restartkernel",
"group": "navigation/execute@5",
"when": "notebookKernel =~ /^ms-toolsai.jupyter\\// && notebookType == 'jupyter-notebook' && isWorkspaceTrusted && jupyter.kernel.isjupyter"
},
{
"command": "jupyter.openVariableView",
"group": "navigation@1",
"when": "notebookKernel =~ /^ms-toolsai.jupyter\\// && notebookType == 'jupyter-notebook' && isWorkspaceTrusted && jupyter.ispythonnotebook && jupyter.kernel.isjupyter"
},
{
"command": "jupyter.openOutlineView",
"group": "navigation@2",
"when": "notebookType == 'jupyter-notebook' && config.jupyter.showOutlineButtonInNotebookToolbar"
},
{
"command": "jupyter.continueEditSessionInCodespace",
"group": "navigation@3",
"when": "notebookType == 'jupyter-notebook' && jupyter.kernelSource == 'github-codespaces'"
},
{
"command": "jupyter.notebookeditor.export",
"group": "Jupyter",
"when": "notebookType == 'jupyter-notebook' && isWorkspaceTrusted"
},
{
"command": "jupyter.replayPylanceLogStep",
"group": "navigation@1",
"when": "notebookType == 'jupyter-notebook' && isWorkspaceTrusted && jupyter.replayLogLoaded"
}
],
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
DonJayamanne
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes it is, have a look at the
notebook/toolbar
section in package.json of the jupyter extension