Commit 51022b5
Add ipython to docs deps so nbsphinx Pygments lexer resolves under -W
CI's new Sphinx HTML build (-W) failed with "Pygments lexer name
'ipython3' is not known [misc.highlighting_failure]" warnings on every
.ipynb in docs/tutorials/. nbsphinx renders notebook code cells with the
ipython3 lexer; that lexer ships with the IPython package and is not
included in our docs extras. My local venv had IPython transitively
(common dev dep), masking the gap. RTD has been emitting these warnings
silently since it builds without -W.
Added "ipython>=8.0" to all three sync'd surfaces:
- pyproject.toml [project.optional-dependencies.docs]
- .readthedocs.yaml post_install pip install
- .github/workflows/docs-tests.yml sphinx-build job
Verified locally with python3 -c "from pygments.lexers import
get_lexer_by_name; print(get_lexer_by_name('ipython3'))" — returns
<pygments.lexers.IPython3> when IPython is installed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 86cc916 commit 51022b5
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
0 commit comments