-
Notifications
You must be signed in to change notification settings - Fork 41
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
Does not work in VS Code Jupyter Notebooks #19
Comments
Can one not simply use the black functionality of VSCode in there? |
The format document command does not appear in the command palette while in a notebook. |
@grahamwetzler the black functionality in VScode only works on .py files, as far as I can tell. In case it's useful to you, though, I've made a tool which might be helpful to you - https://github.com/nbQA-dev/nbQA. You can use it via the command-line as
It only works via the command-line or as a pre-commit hook though, so it's certainly not a replacement for the excellent tool that pre-commit example: - repo: https://github.com/nbQA-dev/nbQA
rev: 1.5.3
hooks:
- id: nbqa-black EDIT: as for 2022, |
Just leaving as another suggestion: there is a command for |
https://github.com/n8henrie/jupyter-black works really well for me. |
Neither
%load_ext nb_black
nor%load_ext lab_black
work with Jupyter Notebooks in Visual Studio Code. There is no error. The code just doesn't format.The text was updated successfully, but these errors were encountered: