Add a scratch-pad console to the notebook#7790
Conversation
|
EDIT: this comment is now solved, the PR has been rebased with #7799
When the command is executed, it seems that a We can see in the screen recording below that the command is executed, though, but the console needs to be reopened. record-2025-12-18_16.03.53.webm |
| "@jupyter-notebook/notebook-extension": true, | ||
| "@jupyter-notebook/terminal-extension": true, | ||
| "@jupyterlab/application-extension": [ | ||
| "@jupyterlab/application-extension:commands", |
There was a problem hiding this comment.
This extension is not enabled anymore, except for the tree view, because it already uses the Ctrl + B shortcut.
AFAIK the commands in this extension may not be necessary for the Notebook view (not sure it is necessary at all, most of them requires a LabShell to work).
|
Reopening it, it has been closed by error by the description of #7799 |
7daecc7 to
d1b92fe
Compare
…ension:commands to avoid conflict
…ole tracker updated (required to execute code)
d1b92fe to
3ad11b2
Compare
|
Thanks @jtpio for the review, I updated the PR according to your comments.
The menu entry uses the widget title, and the one from console is updated when a property or kernel changes. If we use the same signal in Notebook, it will conflict and we can't know which one will be triggered first. An option could be to add an flag in the constructor of the console (in Jupyterlab), to disable the title update.
In jupyterlab/jupyterlab#18238, we added a way to enable the commands when the console is not in main area, but missed this use case. It uses the fact that the current console contains the |
I opened jupyterlab/jupyterlab#18331 to fix it.
I opened jupyterlab/jupyterlab#18332 to fix it. @jtpio do you think that we should wait for these PR to be merged and release before ? If so, we should set this PR as draft for now. |
|
Ah thanks for opening the PRs upstream! Yeah it's ok if this gets fixed later. We can track that in an issue and fix it when updating to the next JupyterLab 4.6.0a2. |

This PR allows to open a console next to a Notebook (scratch-pad like), sharing the same kernel.
there are several way to open it from a Notebook view:
menu>new>Scratch-pad consoleCtrl + BFixes #7707
Remaining tasks:
activateByIdtoggle side panel instead of expanding it #7534)