Crates.io | dprint-plugin-jupyter |
lib.rs | dprint-plugin-jupyter |
version | 0.1.5 |
source | src |
created_at | 2023-11-23 23:46:10.538712 |
updated_at | 2024-10-21 16:17:48.454309 |
description | Formats code blocks in Jupyter notebooks. |
homepage | https://github.com/dprint/dprint-plugin-jupyter |
repository | https://github.com/dprint/dprint-plugin-jupyter |
max_upload_size | |
id | 1046611 |
size | 34,220 |
Formats code blocks in Jupyter notebook files (.ipynb
) using dprint plugins.
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. After, open an issue about adding support for that plugin (if you're interested in opening a PR, it's potentially an easy contribution).
Configuration is handled in other plugins.