Jupyter Plugin

Formats code blocks in Jupyter Notebooks.

Install and Setup

In your project's directory with a dprint.json file, run:

dprint config add jupyter

This will update your config file to have an entry for the plugin.

  "plugins": [

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).


Set the configuration for code blocks in other plugins.