-
Notifications
You must be signed in to change notification settings - Fork 297
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 all cells in notebook #1187
Comments
For what it's worth, I'm not actually sure this is feasible -- notebook cells are often run and written out of sequence, and I'm not sure if a formatter like |
Not sure I see what the issue is, but black's current way of running Jupyter Notebooks doesn't require cells to have been executed in order |
Oh great! Right, I guess black doesn't care about syntax stuff like running undefined vars. Nevermind! |
@DonJayamanne as workaround, since two months ago black supports formating |
This will be fixed in the next release of the python extension. See this issue here: |
@rchiodo Is it? I'm not seeing where this has been fixed... |
Ah, nice! Is there a way to get this respect the usual "format on save" option for VS Code? And/or should that be a separate issue? |
Format on save is actually this issue here. Please upvote it: |
Perfect, thanks so much! Appreciate the handholding. :) |
(Sharing with my students too, so if you see a flurry of upvotes, it's not spam. :) They're tired of getting points off for bad formatting) |
Currently we have support for formatting individual cells
However formatting entire document does not seem to work (VSC Has a specific command for this)
Note: black supports ipynb out of the box
See #1187 (comment)
The text was updated successfully, but these errors were encountered: