Be reproducible, and don't fail on examples exceptions
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Thu, 18 Dec 2025 07:37:30 +0000 (07:37 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Thu, 18 Dec 2025 07:37:30 +0000 (07:37 +0000)
commit8c21f3fc04a984d0a879196eae6a4efebb3ef03f
tree99db02a062687f0d907fbdda3736f0ab50c8b6ce
parent228f56cbc40670dd60c3e33eb0e3cd9a73db2f28
Be reproducible, and don't fail on examples exceptions

If example code outputs an error when run,
ipython (ipython:: blocks) now fails the whole build by default,
and tools/nbgenerate.py (.ipynb files) now leaves out that file
(leaving a broken link in the examples index).

As some examples use downloaded data and are hence expected to be
unrunnable on a Debian buildd, this instead keeps them
(::ipython with error output, .ipynb without output).

Also remove timestamps, ipykernel IDs, etc from examples output
for reproducibility.  (This is here not in debian/rules to do it
before building the search index.)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name sphinx_reproducibility_and_ignore_errors.patch
docs/Makefile
docs/source/conf.py
examples/notebooks/stl_decomposition.ipynb