Skip to content

Commit 10f7417

Browse files
committed
fix ReadTheDocs: show pre-run notebook plots without re-execution
Set nbsphinx_execute = "never" so nbsphinx uses existing cell outputs instead of trying to re-run notebooks, and add pandoc as an apt package in readthedocs.yaml since nbsphinx requires it for notebook conversion.
1 parent 415710a commit 10f7417

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

docs/source/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070
# This pattern also affects html_static_path and html_extra_path.
7171
exclude_patterns = ["_build", "**.ipynb_checkpoints"]
7272

73+
# Use pre-executed notebook outputs; never re-run on the build server
74+
nbsphinx_execute = "never"
75+
7376

7477
# -- Options for HTML output -------------------------------------------------
7578

readthedocs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ build:
44
os: ubuntu-22.04
55
tools:
66
python: "3.11"
7+
apt_packages:
8+
- pandoc
79

810
sphinx:
911
configuration: docs/source/conf.py

0 commit comments

Comments
 (0)