-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Add the layout restorer #7747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add the layout restorer #7747
Conversation
EDIT this error has been fixed There is a conflict on the title of the browser tab with this PR. BEFORE THE PRrecord-2025-10-21_11.29.54.webmAFTER THE PRrecord-2025-10-21_11.30.28.webmThe tab title is not updated correctly anymore, probably because of https://github.com/jupyterlab/jupyterlab/blob/21f9c73298d7a450dba9927d404c87aae3011f7a/packages/apputils-extension/src/index.ts#L462-L469. Maybe we should provide the |
Added in c1b056e |
Adds the layout restorer, to restore the state of the side/down panels.
It includes the current widgets opened in each panel, and the size of the panels.
record-2025-10-17_20.16.35.webm
Fixes #6990
User facing change
nb-default
.Code changes
RestoreLayout
andSaveLayout
function to the shell, which uses some dedicated function to "dehydrate" and "rehydrate" the shell'@jupyter-notebook/application-extension:layout'
, which handle the shell layout restoration'@jupyter-notebook/apputils-extension:state'
, which was previously activated from jupyterlab. Providing our ownIStateDB
allow to avoid some side effect, that the tab title update (which does not work correctly in Notebook, see Add the layout restorer #7747 (comment))