You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Thumbnails aren't shown for some examples.
What causes this? Is it the fact that the Figures aren't displayed in the example? If so, would this be resolved if I just re-run the notebooks and store the outputs?
What causes this? Is it the fact that the Figures aren't displayed in the example?
Yes, I think so. Figures not being displayed for some reason means sphinx can't grab them to include in the built HTML.
If so, would this be resolved if I just re-run the notebooks and store the outputs?
No, because these aren't notebooks, they're just .py scripts. sphinx executes them de novo during the docs build.
I don't know off the top of my head what the problem is here. I thought .show() would be enough, but it seems otherwise. Nothing sticking out in the logs either.
sphinx-gallery is not version pinned, gotta look in the changelog. Latest 0.21.0 was released in Apr 24. https://pypi.org/project/sphinx-gallery/0.21.0/
Previous 0.20.0 was released in 2025-12-02.
Edit to add: no mention of breaking changes in 0.21.0.
I can't debug on mobile, will check later. But we gotta see if thumbnails are being generated and linked correctly.
I suggest adding a explicit prefix or suffix to indicate which files gotta be excluded form the gallery, à la ign_*, noexec_*, noplot_*, NX_*, ...
This solution is more explicit than listing names at other place (conf.py) - also an option. I'm opening a PR so that we can have this on latest docs asap
So renaming those files to begin with plot_, or changing our filename_pattern, would get it working again. Not sure which of those two options is best.
Edit: I am +1 to @echedey-ls's exclusion prefix idea above.
Activity
kandersolar commentedon Jun 18, 2026
Yes, I think so. Figures not being displayed for some reason means sphinx can't grab them to include in the built HTML.
No, because these aren't notebooks, they're just
.pyscripts. sphinx executes them de novo during the docs build.I don't know off the top of my head what the problem is here. I thought
.show()would be enough, but it seems otherwise. Nothing sticking out in the logs either.echedey-ls commentedon Jun 18, 2026
https://github.com/pvlib/pvlib-python/blob/main/pyproject.toml#L62
sphinx-gallery is not version pinned, gotta look in the changelog. Latest 0.21.0 was released in Apr 24.
https://pypi.org/project/sphinx-gallery/0.21.0/
Previous 0.20.0 was released in 2025-12-02.
Edit to add: no mention of breaking changes in 0.21.0.
I can't debug on mobile, will check later. But we gotta see if thumbnails are being generated and linked correctly.
echedey-ls commentedon Jun 18, 2026
Frick, the problem is that everything works:
pvlib-python/docs/sphinx/source/conf.py
Lines 391 to 392 in 0f7a205
Introduced in #2691
Lucky us with @RDaxini catching that
echedey-ls commentedon Jun 18, 2026
I suggest adding a explicit prefix or suffix to indicate which files gotta be excluded form the gallery, à la
ign_*,noexec_*,noplot_*,NX_*, ...This solution is more explicit than listing names at other place (
conf.py) - also an option. I'm opening a PR so that we can have this on latest docs asapkandersolar commentedon Jun 18, 2026
Ah ha, of course! Nice work, @echedey-ls.
So renaming those files to begin with
plot_, or changing ourfilename_pattern, would get it working again. Not sure which of those two options is best.Edit: I am +1 to @echedey-ls's exclusion prefix idea above.