6 releases

0.1.4 May 27, 2024
0.1.3 Feb 23, 2024
0.1.2 Nov 27, 2023
0.0.1 Nov 23, 2023

#218 in Configuration

Download history 871/week @ 2024-03-14 853/week @ 2024-03-21 1375/week @ 2024-03-28 929/week @ 2024-04-04 1031/week @ 2024-04-11 857/week @ 2024-04-18 746/week @ 2024-04-25 1046/week @ 2024-05-02 1020/week @ 2024-05-09 1340/week @ 2024-05-16 1042/week @ 2024-05-23 840/week @ 2024-05-30 710/week @ 2024-06-06 1097/week @ 2024-06-13 978/week @ 2024-06-20 687/week @ 2024-06-27

3,620 downloads per month
Used in deno

MIT license

23KB
551 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

~1.8–2.8MB
~58K SLoC