dprint-plugin-jupyter
Formats Jupyter Notebook code blocks using dprint plugins.
Install
Then in your project's directory with a dprint.json file, run:
dprint config add jupyter
Then add some additional formatting plugins to format the code blocks with. For example:
dprint config add typescript
dprint config add markdown
dprint config add ruff
If you find a code block isn't being formatted with a plugin, please verify it's not a syntax error, then please open an issue about adding support for that plugin (if you're interested in submitting a PR, it's potentially an easy contribution).
Configuration
Configuration is handled in other plugins.