// plugins
Jupyter Plugin
Formats code blocks in Jupyter Notebooks.
Install and Setup
In your project's directory with a kprint.json file, run:
kprint add jupyter
# or install from npm
kprint add npm:@dprint/jupyter
This will update your config file to have an entry for the plugin.
{
"plugins": [
"https://plugins.dprint.dev/jupyter-x.x.x.wasm"
]
}
Then add some additional formatting plugins to format the code blocks with. For example:
kprint add typescript
kprint add markdown
kprint 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
Set the configuration for code blocks in other plugins.