Repository navigation
Pin jax at 0.12.1, the shared baseline's new version - #665
Conversation
The lecture baseline (QuantEcon/lectures' _base/environment-update.yml) moves jax from 0.11.0 to 0.12.1: 0.11.0 was kept because 0.11.1 hangs numpy_vs_numba_vs_jax's lax.fori_loop cells, and a test build on 0.12.1 ran them without a hang. The three GPU workflows and the lecture's own install line move together, so the lecture's cell stays satisfied. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL
There was a problem hiding this comment.
🟡 Changes recommended
The three CPU workflows still pin JAX 0.11.0, so the lecture’s upgrade can make other lectures use different versions depending on execution order; update those pins and matching comments to 0.12.1.
1 open issue
What changed in this PR
Updates the programming lecture series to JAX 0.12.1 to match the shared lecture baseline, keeping the GPU build workflows and lecture installation cell aligned.
Changes:
- Bumps JAX from 0.11.0 to 0.12.1 in cache, CI, and publishing workflows.
- Updates the comparison lecture’s installation cell to the same version.
- Revises workflow comments to explain the baseline pin and prior CPU-loop regression.
| File | Description |
|---|---|
lectures/numpy_vs_numba_vs_jax.md |
Pins the lecture’s JAX installation to 0.12.1. |
.github/workflows/publish.yml |
Updates the publishing JAX pin and explanatory comments. |
.github/workflows/ci.yml |
Updates the CI JAX pin and explanatory comments. |
.github/workflows/cache.yml |
Updates the cache-build JAX pin and explanatory comments. |
Review effort: Balanced
Copilot's review: the Linux, macOS and Windows execution checks still installed jax[CPU]==0.11.0, so the lecture's 0.12.1 line would upgrade jax partway through their builds. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL
|
Full site validation: no new warnings and no regressions. jax 0.12.1 runs
|
✅ Translation sync completed (zh-cn)Target repo: QuantEcon/lecture-python-programming.zh-cn
|
✅ Translation sync completed (fa)Target repo: QuantEcon/lecture-python-programming.fa
|
✅ Translation sync completed (fr)Target repo: QuantEcon/lecture-python-programming.fr
|
…in (#76) Moves the environment list's jax from 0.11.0 to 0.12.1, the newest release, in _base/environment-update.yml and _base/README.md: 0.12.1 runs programming's numpy_vs_numba_vs_jax, which 0.11.1 hangs. Re-promotes numpy_vs_numba_vs_jax from lecture-python-programming at bae31ee, so its own install line names jax 0.12.1 and its ledger entry moves with it. Content reviewed by a person: @mmcky, who reviewed and merged the same line upstream (QuantEcon/lecture-python-programming#665) and answered "Reviewed, merge" to this PR in the organiser session. Co-authored-by: Claude Opus 5.5 <[email protected]>

What
This moves programming's jax from 0.11.0 to 0.12.1, the lecture baseline's new version (QuantEcon/lectures'
_base/environment-update.yml). The baseline kept 0.11.0 because jax 0.11.1 hangs this series'numpy_vs_numba_vs_jax(itslax.fori_loopcells jit on the CPU; context in QuantEcon/workspace-lectures#49). A test build of this series on 0.12.1 ran those cells without a hang, so the owner chose to move the baseline, and every series, to 0.12.1.cache.yml,ci.yml,publish.ymlpip install "jax[cuda13]==0.11.0"becomes==0.12.1; the comment above it says why it is pinnednumpy_vs_numba_vs_jax!pip install quantecon "jax==0.11.0"becomes"jax==0.12.1"The workflows and the lecture move together. With the lecture's own line on the old version, a build would reinstall jax 0.11.0, without its CUDA plugin, partway through.
For readers on Colab, the lecture's install line now installs jax 0.12.1 in place of 0.11.0.
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, changed cell outputs and rendering. The evidence follows in a comment.
The test build that settled the question, on a temporary branch with the same jax pin and the same lecture line, is QuantEcon/lecture-python-programming run 44470126047. This branch differs from that test only in the workflows' comments, and in also pinning
ci.ymlandpublish.yml.🤖 Generated with Claude Code
https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL