-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Default to the full
windowing mode
#7321
Conversation
cc @afshin for review as the author of the upstream PR: jupyterlab/jupyterlab#15533 Not sure why but there seems to be some logic setting a I'm not super happy with these |
Maybe we could live with it for now, as we are still defaulting to |
How to test this on Binder? Each time I try to switch setting to "full" when I reload the notebook it switches back to defer. It looks like setting switching code will make it hard for users to toggle the mode, so I am now less convinced that this is a good idea (with the current implementation). |
Yes indeed. Ideally we would be able to temporarily default the windowing mode to Of note there is a similar issue with the defaults used in the file browser (checkboxes on, notebook sorted first), which affect JupyterLab. |
Another idea, can notebook server extension inject something into |
Probably. But it might be a bit odd to go down that way, because there is already a way for setting the windowing mode (via the settings). So that would still be a workaround. Otherwise, maybe there should be a programmatic way to more dynamically set the windowing mode, similar to this request for more easily customizing the file browser: jupyterlab/jupyterlab#14623. Providing a custom notebook factory in Notebook might also work, but it sounds a bit overkill and would lead to duplicating upstream code from JupyterLab, just to be able to change one default. |
While I understand that the Now, there is always a way to create a new |
bot please update playwright snapshots |
Also not sure where we got it from, but it looks like the Notebook now shows a scrollbar by default even when there is a single cell only. This seems to be the case in Notebook 7.1.x too, so not related to this PR in particular: notebook-default-scrollbar.webm |
Should be fixed by #7327 |
Looks like there is a some growing padding at the bottom of the last cell when adding new cells: full-last-cell-extra.webm |
This seems to be the same issue as originally reported in #6855 (comment). @afshin @krassowski or anyone who has worked on the notebook windowing mode, would there be a way to fix or work around that? |
It looks like this might be caused by the fixed height set on Also cc @fcollonval who may know of a fix or workaround. |
OK gonna work around that for now in #7335, by sticking to |
full
windowing modefull
windowing mode
bot please update playwright snapshots |
bot please update playwright snapshots |
bot please update playwright snapshots |
bot please update playwright snapshots |
OK looks like we can now get this one in, and align with the JupyterLab default. |
Fixes #7231
Fixes #7318
Closes #7301
notebook-windowing-mode-full.webm