You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the VSCode extensions, I am working with Manim, which has a custom magic command %%manim. Note that I am working within an Anaconda Environment. The extension is set to use the bundled import strategy.
I have added to the args the required parameter to add the custom command. In my VSCode settings.json:
as the file is notebook.ipynb, not notebook.py. But that may be irrelevant.
Now, when I ran black from my command line, outside of VSCode, using my system's terminal, I got the following response:
> black .\notebook.ipynb
Skipping .ipynb files as Jupyter dependencies are not installed.
You can fix this by running ``pip install "black[jupyter]"``
No Python files are present to be formatted. Nothing to do 😴
I ran the required command, as prompted, and then formatting successfully occurred when I specified the custom magic command, as expected:
> black --python-cell-magics manim .\notebook.ipynb
reformatted notebook.ipynb
All done! ✨ 🍰 ✨
1 file reformatted.
I reattempted to run Black within vscode, but it still gives the same errors as previously listed. Is this feature not supported within the vscode extension?
The text was updated successfully, but these errors were encountered:
We do some cell formatting by tricking black into thinking the cells are actually python files. This is why you see .ipynb switched to .py. We do have plans to support notebook formatting.
Using the VSCode extensions, I am working with Manim, which has a custom magic command
%%manim
. Note that I am working within an Anaconda Environment. The extension is set to use the bundled import strategy.I have added to the args the required parameter to add the custom command. In my VSCode settings.json:
Formatting an .ipynb notebook with the following at the top of my cell gives me an error
The error I get is:
I can see in the Output tab:
I am not sure why it is printing, for example:
as the file is
notebook.ipynb
, notnotebook.py
. But that may be irrelevant.Now, when I ran black from my command line, outside of VSCode, using my system's terminal, I got the following response:
I ran the required command, as prompted, and then formatting successfully occurred when I specified the custom magic command, as expected:
I reattempted to run Black within vscode, but it still gives the same errors as previously listed. Is this feature not supported within the vscode extension?
The text was updated successfully, but these errors were encountered: