Repository navigation
Raise the build stack to the shared baseline, drop --upgrade from install lines - #75
Conversation
…tall lines - environment.yml: quantecon-book-theme 0.22.2, sphinx-exercise 1.2.2, sphinx-proof 0.4.1, the versions of the lecture baseline, QuantEcon/lectures' _base/environment-update.yml, and of the quantecon-build image the builds run in. - --upgrade dropped from 20 install lines in 17 lectures (quantecon, optax, statsmodels), as in their sources: in a build every lecture runs in one environment, so an --upgrade line replaces the version the environment pins for every lecture executed after it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL
There was a problem hiding this comment.
🔵 Needs a closer look
Human verification is needed because the supplied evidence lacks the required fresh main/branch builds executing every lecture, warning/output and page-by-page rendering comparisons, and Colab validation.
No open issues 🎉
What changed in this PR
Aligns the dynamic programming lecture series with the shared QuantEcon build baseline and removes forced package upgrades from lecture install cells. This consolidates the dependency updates proposed in #71, #73, and #74.
Changes:
- Updates the theme, exercise, and proof package pins to the versions already used by the build image.
- Removes
--upgradefrom 20 install commands across 17 lectures, preserving installed packages, including the baseline statsmodels version.
| File | Description |
|---|---|
lectures/tax_smoothing_3.md |
Removes forced quantecon upgrade. |
lectures/tax_smoothing_2.md |
Removes forced quantecon upgrade. |
lectures/tax_smoothing_1.md |
Removes forced quantecon upgrade. |
lectures/smoothing.md |
Removes forced quantecon upgrade. |
lectures/smoothing_tax.md |
Removes forced quantecon upgrade. |
lectures/opt_tax_recur.md |
Removes forced quantecon upgrade. |
lectures/markov_jump_lq.md |
Removes forced quantecon upgrade. |
lectures/lqramsey.md |
Removes forced quantecon upgrade. |
lectures/dyn_stack.md |
Removes forced quantecon upgrade. |
lectures/discrete_dp.md |
Removes forced quantecon upgrade. |
lectures/cons_news.md |
Removes forced quantecon upgrade. |
lectures/calvo.md |
Removes forced quantecon upgrades from two cells. |
lectures/calvo_machine_learn.md |
Removes forced quantecon, optax, and statsmodels upgrades. |
lectures/calvo_abreu.md |
Removes forced quantecon upgrade. |
lectures/amss3.md |
Removes forced quantecon upgrade. |
lectures/amss2.md |
Removes forced quantecon upgrade. |
lectures/amss.md |
Removes forced quantecon upgrade. |
environment.yml |
Pins theme 0.22.2, sphinx-exercise 1.2.2, and sphinx-proof 0.4.1. |
Review effort: Balanced (adaptive)
|
Full site validation: no new warnings and no regressions. The intended change is the only behavioural one: statsmodels is no longer upgraded partway through the build.
|
What
The last of six pull requests, one per series, that bring the lecture series to one up-to-date baseline: the environment the QuantEcon lecture monorepo's sites are to build in,
_base/environment-update.ymlin QuantEcon/lectures. The others are QuantEcon/lecture-python-intro#872, QuantEcon/lecture-python-programming#663 and QuantEcon/lecture-python-programming#665, QuantEcon/lecture-jax#374, QuantEcon/lecture-python.myst#1135 and QuantEcon/lecture-python-advanced.myst#416.environment.ymlquantecon-buildimage already holds--upgradedropped from 20 install lines: quantecon in 18, and optax and statsmodels incalvo_machine_learn. These are the lines their sources dropped in QuantEcon/lecture-python-advanced.myst#416It supersedes dependabot's #71, #73 and #74, which bump the same three packages.
What changes in the build
dp builds in the
ghcr.io/quantecon/quantecon-buildimage, which doesn't installenvironment.yml. The image already holds theme 0.22.2, sphinx-exercise 1.2.2 and sphinx-proof 0.4.1, so the build stack doesn't change.environment.yml's hash is part of the build cache's key, so the change gives the cache a fresh key, and the file states the versions the builds use.In a build every lecture runs in one environment, so an
--upgradeline replaces the version the environment holds for every lecture executed after it. In the image:--upgrade.calvo_machine_learn's--upgrade statsmodelsreplaced it with the newest, 0.15.0, for every lecture after it. Now it stays.14 of the 17 lectures are now byte-identical to advanced's copies.
cons_news,markov_jump_lqandopt_tax_recuralready differed from advanced elsewhere, and still do.Validation
By the owner's rule for any software upgrade on a series, this merges only after a full validation of the site: fresh builds of main and of this branch with every lecture executed, compared for new warnings (DeprecationWarning, FutureWarning, Sphinx), changed cell outputs and rendering regressions page by page, plus the Colab path.
cache.ymlkeeps its build as the cache rather than as an artifact, so aci.ymlrun on each side follows it, restores that cache and uploads the HTML to compare. The evidence follows in a comment.🤖 Generated with Claude Code
https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL