-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
A "tight layout" mode that reduces vertical spacing #175295
Comments
related, but for IW: #156803 |
@kolibril13 thanks for your feedback. This has been brought up multiple times and we can see the value of having a more compact view for notebook editor. The main reason VS Code's default notebook view has more spacing is it renders more components than the Jupyter Notebook, including
If we disable these components (the functionalities are still available through commands, or through other components) with following settings
VS Code @kolibril13 do you wanna give the settings a try and see how they work for you? |
I pushed this a bit more by
and I actually get slightly more content rendered than Jupyter Notebook ;). It's not fair comparison as the browser renders the omnitoolbar and Jupyter Notebook renders a menubar (while VS Code's menus are in the system menubar) and here are all the notebook settings I tweaked
|
Thanks @rebornix for your quick response and so many great suggestions! I think it's really situation dependent when one prefers more functions, and when one prefers more space. Regarding from your comment above:
I totally agree with this, these are nice to have, but also dispensable as there are good alternatives.
In my opinion, the execution state is an important feature. I've tested your parameters, and it's a huge difference! Thanks a lot for providing these settings! :) Screen.Recording.2023-02-24.at.20.40.58.mov
I just took your reduced spaced layout and drew some red lines where I can see potential to further reduce the size:
Maybe it might look cluttered then, but it would be interesting to see if this was possible. |
@kolibril13 I like the screenshot you posted above very much. You did figure out the padding we added around those components, great work!
We always add a few pixels around the cell editor. The text editor has settings to control the top/bottom padding, so we might consider adding the same set of settings for notebook.
We might want to check the default padding we use for outputs cc @amunger |
Any updates on these features? |
Historically related: #101366 |
A design with generous vertical spacing looks nice on big screens.
However, on a small Laptop screen, it's in my opinion better to have a tighter layout to fit more lines of code on the screen.
Therefore, it would be nice to have a "tight layout" mode, that reduces vertical spacing in a notebook.
I've made 4 screenshots from the same notebook to show how vertical spacing is varying from platform to platform (and VSCode wins the contest of largest white space areas):
All screenshots are made with default zoom setting and used this notebook https://gist.github.com/kolibril13/cdecff2da4f12dcbc5ffae449a5e9572
My machine is a MacBoc Air M1, Retina display, 13.3-inch (diagonal).
It would be amazing if vertical spacing was customizable in VS Code Jupyter!
The text was updated successfully, but these errors were encountered: