Fix broken gallery thumbnails in the published docs#536
Merged
Mbompr merged 1 commit intoX-DataInitiative:masterfrom Apr 22, 2026
Merged
Fix broken gallery thumbnails in the published docs#536Mbompr merged 1 commit intoX-DataInitiative:masterfrom
Mbompr merged 1 commit intoX-DataInitiative:masterfrom
Conversation
Two issues were producing the "black square" placeholder images on x-datainitiative.github.io/tick: * `tick.plot.qq_plots` imports `statsmodels` lazily, so any example calling it (`plot_hawkes_finance_data`, `plot_hawkes_em`, the `qq_plot_*` group) blew up with `ModuleNotFoundError` during the gallery run and the extension fell back to the broken-image stub. Add `statsmodels` to the `docs` extra so docs builds pull it in. * `pip install .[docs,plot]` printed `WARNING: tick 0.8.0.1 does not provide the extra 'plot'` because no `plot` extra exists; `matplotlib` already lives in the core dependencies. Drop the phantom reference from the workflow and the doc README. Unrelated: `plot_asynchronous_stochastic_solver.py` still fails with `ASAGA 2 has no history for time` and needs a dedicated fix. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
After #535 rebuilt the docs with
make html, several examples on https://x-datainitiative.github.io/tick/auto_examples/ rendered as black placeholder squares. Two causes in the build log:tick.plot.qq_plotsimportsstatsmodelslazily, so every example that uses it (plot_hawkes_finance_data,plot_hawkes_em, theqq_plot_*group) crashed withModuleNotFoundErrorduring the gallery run, and the extension fell back to the broken-image thumbnail. Fixed by addingstatsmodelsto thedocsextra.pip install .[docs,plot]printedWARNING: tick 0.8.0.1 does not provide the extra 'plot'— theplotextra doesn't exist inpyproject.toml;matplotlibis already a core dependency. Dropped the phantom,plotfrom the workflow anddoc/README.md.Not in scope
plot_asynchronous_stochastic_solver.pystill fails withASAGA 2 has no history for time. That's a real bug in the example code (or in solver history tracking for ASAGA) and needs its own fix.Test plan
Build Docsworkflow no longer prints theextra 'plot'warning during install.plot_hawkes_em,plot_hawkes_finance_data, andqq_plot_hawkes_*show real figures instead of black squares.🤖 Generated with Claude Code