-
Notifications
You must be signed in to change notification settings - Fork 90
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
Minimal notebook UI flag for vscode notebooks #5384
base: main
Are you sure you want to change the base?
Conversation
…ook UI based on its presence.
0975a4c
to
c179ac7
Compare
// Old version | ||
// const options = new NotebookOptions(mainWindow, false, undefined, instantiationService.get(IConfigurationService), instantiationService.get(INotebookExecutionStateService), instantiationService.get(ICodeEditorService)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this commented out code be removed?
/** | ||
* Register a callback that will be invoked when the minimal UI mode changes. | ||
* @param opts.callback The callback to invoke. | ||
* @param opts.runWhenFirstSet Whether to run the callback when listener is first set. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this is interesting. In what scenarios would we not want to run the callback immediately after setting the listener?
Not sure if the following is a regression from this change but I noticed that the default notebook layout has some issues:
Screen.Recording.2024-11-18.at.5.11.36.PM.movScreen.Recording.2024-11-18.at.5.21.01.PM.movI did also try to turn the feature flag on but couldn't get the minimal ui to show. It may be user error though. I turned the feature on and then created a new jupyter project and opened it in the current window. Not sure what I did wrong there 😢 All that being said, I really love the minimal ui based off the video/screenshots in the PR description! |
…the cell after padding has been added to the bottom.
This PR adds a new mode enabled by the feature flag
notebook.usePositronMinimalNotebookUI
The flag defaults to off.
Static changes
There are a few static visual changes:
Animation changes
Perhaps more important are the changes to the experience of navigating and running cells in the notebook.
Previously when you would run a cell the following animations would activate
Minimal mode removes the cell-level spinner and the bouncing progress bar to keep things a bit less hectic.
Running a cell with defaults
lots-of-animation.mov
Running cells with minimal mode
Screen.Recording.2024-11-15.at.12.43.31.PM.mov
QA Notes
This PR is almost entirely implemented via css, so there shouldn't be too many hiccups in terms of things changing. Since it's purely UI-based I held off on adding a smoke-test as that felt a bit overboard for this type of change.
Basically, after changing the feature flag, you should be able to open up any notebook you could open before and have things look a bit more... calm.