Changelogs » Nb-clean

PyUp Safety actively tracks 263,329 Python packages for vulnerabilities and notifies you when to upgrade.

Nb-clean

1.6.0

This minor release adds optional functionality to preserve cell metadata. The `configure-git`, `clean`, and `check` subcommands now support an optional `-m`/`--preserve-metadata` flag. When this is set, `nb-clean configure-git` and `nb-clean clean` won't remove cell metadata from notebooks, and `nb-clean check` won't fail if the notebook contains cell metadata.

1.5.0

This minor release adds optional functionality to remove empty cells. The `configure-git`, `clean`, and `check` subcommands now support an optional `-e`/`--remove-empty` flag. When this is set, `nb-clean configure-git` and `nb-clean clean` will remove empty cells from notebooks in addition to removing cell execution counts, metadata, and outputs, and `nb-clean check` will fail if the notebook contains empty cells.

1.4.3

This patch release fixes an incorrect error message when calling `nb-clean unconfigure-git` in a Git repository which did not have the `nb-clean` filter installed. Previously, it would be reported that the working directory was not a Git repository. Now it's correctly reported that an `nb-clean` section is not present in the repository's Git configuration file.

1.4.2

This patch release unpins the dependency on `nbformat` to allow installation alongside recent releases of Jupyter.

1.4.1

This patch release fixes some inconsistent terminology in docstrings and strings printed by the `check` subcommand.

1.4.0

This minor release adds a `check` subcommand that determines if a notebook is clean or not, which can be used as a check in your continuous integration pipelines.

1.3.0

This minor release migrates from Pipenv to Poetry for dependency management and packaging, and adopts Nox in CI. There are no user-facing changes.

1.2.0

This minor release adds a `version` subcommand that prints the version of `nb-clean`.

1.1.0

This minor release adds an `unconfigure-git` subcommand that removes the Git filter configuration added by `nb-clean configure-git`.

1.0.0

This is the initial public release of `nb-clean`.