Skip to content

About

Formats code blocks in Jupyter notebooks.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

dprint-plugin-jupyter

npm version 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 add jupyter

Then add some additional formatting plugins to format the code blocks with. For example:

dprint add typescript
dprint add markdown
dprint add ruff

Each code block is formatted with whichever plugin handles its language's file extension (ex. a python cell is formatted as a .py file and a sql cell as a .sql file). 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 mapping that cell's language to the plugin's file extension (if you're interested in opening a PR, it's potentially an easy contribution).

Configuration

Configuration is handled in other plugins.

About

Formats code blocks in Jupyter notebooks.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages