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 <noreply@anthropic.com> 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 <noreply@anthropic.com> 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 <noreply@anthropic.com>
…sion (#111) Translation sync of QuantEcon/lecture-python-programming#665 for numpy_vs_numba_vs_jax: the install cell pins jax==0.12.1 (was 0.11.0), and the lecture's state file moves its source-sha to ad2be6a, #665's merge (synced-at 2026-11-19, tool-version 0.33.0). Validated on 2026-11-23 with fresh full builds of main and of main with this PR and #114 (evidence on #114): the same warnings, and only autodiff's gradient-descent estimate changes, as on #665. Lecture content: reviewed by @mmcky ("Merge all six as recommended") in the organiser session, at head 402f66d. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…#114) Moves the jax pin in cache.yml, ci.yml and publish.yml from 0.11.0 to 0.12.1, with the comment as in QuantEcon/lecture-python-programming#665, now that the lecture cell names the same version (#111, merged just before). Validated on 2026-11-23 with fresh full builds of main and of main with #111 and this PR (the evidence comment here). Merged on @mmcky's "Merge all six as recommended" in the organiser session, after the organiser's fresh review. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…sion (#186) Translation sync of QuantEcon/lecture-python-programming#665 for numpy_vs_numba_vs_jax: the install cell pins jax==0.12.1 (was 0.11.0), and the lecture's state file moves its source-sha to ad2be6a, #665's merge (synced-at 2026-11-19, tool-version 0.33.0). Validated on 2026-11-23 with fresh full builds of main and of main with this PR and #187 (evidence on #187): the same warnings, and only autodiff's gradient-descent estimate changes, as on #665. Lecture content: reviewed by @mmcky ("Merge all six as recommended") in the organiser session, at head 9596825. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…#187) Moves the jax pin in cache.yml, ci.yml and publish.yml from 0.11.0 to 0.12.1, with the comment as in QuantEcon/lecture-python-programming#665, now that the lecture cell names the same version (#186, merged just before). Validated on 2026-11-23 with fresh full builds of main and of main with #186 and this PR (the evidence comment here). Merged on @mmcky's "Merge all six as recommended" in the organiser session, after the organiser's fresh review. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…sion (#152) Translation sync of QuantEcon/lecture-python-programming#665 for numpy_vs_numba_vs_jax: the install cell pins jax==0.12.1 (was 0.11.0), and the lecture's state file moves its source-sha to ad2be6a, #665's merge (synced-at 2026-11-19, tool-version 0.33.0). Validated on 2026-11-23 with fresh full builds of main and of main with this PR and #154 (evidence on #154): the same warnings, and only autodiff's gradient-descent estimate changes, as on #665. Lecture content: reviewed by @mmcky ("Merge all six as recommended") in the organiser session, at head 1843ff3. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…#154) Moves the jax pin in cache.yml, ci.yml and publish.yml from 0.11.0 to 0.12.1, with the comment as in QuantEcon/lecture-python-programming#665, now that the lecture cell names the same version (#152, merged just before). Validated on 2026-11-23 with fresh full builds of main and of main with #152 and this PR (the evidence comment here). Merged on @mmcky's "Merge all six as recommended" in the organiser session, after the organiser's fresh review. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

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