Apocrypha

nbval

A pytest plugin to validate Jupyter notebooks

The plugin adds functionality to py.test to recognise and collect Jupyter notebooks. The intended purpose of the tests is to determine whether execution of the stored inputs match the stored outputs of the .ipynb file. Whilst also ensuring that the notebooks are running without errors. The tests were designed to ensure that Jupyter notebooks (especially those for reference and documentation), are executing consistently. Each cell is taken as a test, a cell that doesn't reproduce the expected output will fail.

Available in

OverlayNewestEbuildsLast activity
gentoo gitweb ↗ 0.11.0 1 14 h details ›
pypi GitHub ↗ 0.11.0 1 5 mo details ›

Versions & arches

VersionOverlay amd64arm64x86ppc64riscvarmloong Committed
0.11.0 gentoo amd64 stable arm64 stable x86 stable ppc64 stable riscv testing arm stable loong testing view · download · history ↗
0.11.0 pypi amd64 testing arm64 untested x86 testing ppc64 untested riscv untested arm untested loong untested view · download · history ↗

Use flags of 0.11.0

  • test Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)
  • doc Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
3 expansion flags (python targets, ABIs, cpu flags…)
  • python_targets_python3_12
  • python_targets_python3_13
  • python_targets_python3_14

Runtime dependencies of 0.11.0

show 13 lines