Skip to content
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

Support formatting of entire ipynb notebook on save #149117

Closed
minsa110 opened this issue May 9, 2022 · 2 comments
Closed

Support formatting of entire ipynb notebook on save #149117

minsa110 opened this issue May 9, 2022 · 2 comments
Assignees
Labels
feature-request Request for new features or functionality notebook-workbench-integration

Comments

@minsa110
Copy link

minsa110 commented May 9, 2022

Feedback from PyCon 2022

"It'd be awesome to have automatic Black formatting on save, like Python does! I can format each cell right now, but I want to be able to format the entire notebook on a command, for example, on notebook save."

Also (somewhat) related to:

@minsa110 minsa110 added the bug Issue identified by VS Code Team member as probable bug label May 9, 2022
@minsa110 minsa110 added feature-request Request for new features or functionality and removed bug Issue identified by VS Code Team member as probable bug labels May 9, 2022
@greazer greazer transferred this issue from microsoft/vscode-jupyter May 9, 2022
@greazer
Copy link
Contributor

greazer commented May 9, 2022

We believe support for formatting notebooks with Black exists. However, there's still a need to support a "format_on_save" event from the VS Code api to accomplish this.

@greazer greazer changed the title Support Black formatting of entire ipynb notebook on save Support formatting of entire ipynb notebook on save May 9, 2022
@rebornix
Copy link
Member

rebornix commented Mar 9, 2023

From tomorrow's Insiders, you should be able to format on save by turning on "notebook.formatOnSave.enabled": true. We are looking into supporting format modified ranges (if you use SCM) soon.

@github-actions github-actions bot locked and limited conversation to collaborators May 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality notebook-workbench-integration
Projects
None yet
Development

No branches or pull requests

4 participants