Sort imports in entire notebook #2633
benlindsay
started this conversation in
Enhancement
Replies: 1 comment
-
Moving this issue to discussion as an enhancement request for comments and upvotes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Running
python.sortImports
in a single cell of a notebook works great, and I'd love to be able to run that command or a similar command on the entire notebook. I love the formatting button provided byjupyterlab_code_formatter
which runs black and isort on every cell, and am hoping to be able to do the same within VSCode. I brought this up in the vscode-jupyter repo, but they suggested I should open an issue here since functionality decisions might be complicated. I would be opposed to pulling all imports to the top cell, and would instead prefer to sort imports in each cell independently, much like howjupyterlab_code_formatter
works. Is this something that would make sense to implement within pylance?Beta Was this translation helpful? Give feedback.
All reactions