Changelog#
v0.11.0 (2026-07-12)#
βΌοΈ BREAKING: Python 3.10+ and pytest 7.4+ are now required.
βΌοΈ Drop Python 3.8/3.9 support; add official Python 3.13 support
π Fix compatibility with pytest 8/9: port the notebook collector from the removed
py.path/fspathAPI to thepathlibbased API (#73, #81)π Fix merging notebook coverage into pytest-covβs data with coverage v7 (the
aliasesargument was renamedmap_path); coverage v7+ is now required for coverage featuresπ Fix an
UnboundLocalErrorwhennb_exec_notebook = Falseand pytest-cov is activeπ Fix removed trailing cells/outputs being diffed at incorrect indices
π Fix
nb_diff_ignore/nb_diff_replacepaths also matching longer cell indices with the same prefix (e.g./cells/1also matching/cells/11)π Fix backspace characters not being cancelled out by the
coalesce_streamspost-processorπ Fix
NBRegressionFixture.checkpermanently settingexec_cwdon first useβ¬οΈ Un-pin
attrs(now>=21),nbclient(now>=0.5.10, tested against 0.11) andcoverage(now v6.5+, tested against v7) (#84)β¨ Notebooks can now skip themselves at runtime, by raising
pytest.skip(...)within a cell (#43)β¨ Add
exec_envfixture option /nb_exec_envini option (lines ofKEY=VALUE), to set environment variables for the kernel, e.g.PYTHONPATH(#15, #85)β¨ Add
nb_diff_use_nbdime_configini option, to load diff-ignore paths from an nbdime configuration file (nbdime_config.json) (#38)π§ Move development dependencies from
testing/code_styleextras to PEP 735 dependency groups (test,pre_commit); thedocsextra is retainedπ§ Add
AGENTS.md, update pre-commit hooks (ruff v0.15) and CI (Python 3.10-3.13 matrix, PyPI trusted publishing, weekly dependabot)
v0.10.0 (2023-11-28)#
β¬οΈ Support nbdime v4 (drop v3 support) by @amotl and @krassowski in chrisjsewell/pytest-notebook#62
v0.9.0 (2023-11-12)#
β¬οΈ Add support for Python 3.12 by @sphuber in chrisjsewell/pytest-notebook#41
β¬οΈ Drop Python 3.7 by @chrisjsewell in chrisjsewell/pytest-notebook#55
v0.8.1 (2022-11-21)#
β¬οΈ Add support for Python 3.10 and 3.11 by @sphuber in chrisjsewell/pytest-notebook#37
v0.8.0 (2022-07-30)#
π Coverage.py fix by @renefritze in chrisjsewell/pytest-notebook#25
v0.7.0 (2022-01-17)#
π Merge: Update package (#20)
β¬οΈ UPGRADE: nbconvert -> nbclient (for notebook execution)
β¬οΈ UPGRADE: coverage v4 -> v5 API (for execution with code coverage)
π DOCS: Use https for inter-sphinx URLs
π DOCS: Update documentation packages
π§ Move to flit for PEP 621 packaging
π§ Add isort pre-commit hook
v0.6.1 (2020-10-16)#
π Fixed compatibility with pytest version 6
π Improved repository and documentation
v0.6.0 (2019-08-13)#
Add Coverage Functionality (#3)
An
ExecuteCoveragePreprocessorclass has been implemented, and integrated into theNBRegressionFixtureandpytest_notebook.plugin. Also, tests and a tutorial have been added.
v0.5.2 (2019-08-12)#
Add documentation for beautifulsoup post-processor.
Add beautifulsoup post-processor.
Add header info for pytest execution.
Add minor docstring update.
v0.5.1 (2019-08-12)#
Include package data.
v0.5.0 (2019-08-12)#
Fix dependency.
v0.4.0 (2019-08-12)#
Added regex-replacement functionality (#1)
Also added:
Cell execution logging.
Tutorial on configuring
pytest-notebook.
Added Conda install documentation.
v0.3.1 (2019-08-10)#
Add screenshot to manifest.
v0.3.0 (2019-08-10)#
Add travis deployment key.
Add documentation and make relevant improvements to the code.
Add nb_post_processors to configuration options.
Add diff configuration via notebook metadata.
Added ordering of stdout/stderr outputs.
Since they are asynchronous, so order isnβt guaranteed.
Add collection/execution of notebooks.
Add blacken_code post-processor.
Add initial working implementation.
Commit before changing to nbdime.
Initial commit.