#formatter #dprint-plugin #jupyter

dprint-plugin-jupyter

Formats code blocks in Jupyter notebooks

8 releases

0.2.0 Feb 27, 2025
0.1.5 Oct 21, 2024
0.1.4 May 27, 2024
0.1.3 Feb 23, 2024
0.0.1 Nov 23, 2023

#106 in Value formatting

Download history 944/week @ 2024-11-29 1263/week @ 2024-12-06 1244/week @ 2024-12-13 837/week @ 2024-12-20 794/week @ 2024-12-27 1039/week @ 2025-01-03 1469/week @ 2025-01-10 1524/week @ 2025-01-17 1171/week @ 2025-01-24 1144/week @ 2025-01-31 977/week @ 2025-02-07 981/week @ 2025-02-14 1304/week @ 2025-02-21 960/week @ 2025-02-28 890/week @ 2025-03-07 995/week @ 2025-03-14

4,289 downloads per month
Used in 6 crates (4 directly)

MIT license

24KB
568 lines

dprint-plugin-jupyter

CI

Formats code blocks in Jupyter notebook files (.ipynb) using dprint plugins.

Install

Install and setup dprint.

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

Configuration is handled in other plugins.

Dependencies

~2–3MB
~62K SLoC