Repository navigation
Pin jax at 0.12.1 in the workflows, the shared baseline's new version - #154
Merged
Merged
Conversation
The English edition moved its workflows and the numpy_vs_numba_vs_jax install cell from jax 0.11.0 to 0.12.1 in QuantEcon/lecture-python-programming#665. The cell reaches this edition by its translation-sync PR; this commit moves the three workflow pins to match, so a build installs 0.12.1 once and the cell reinstalls nothing. Context: QuantEcon/workspace-lectures#49. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WT8bMbNM8AQVCt2pfV5GGX
Contributor
Author
Full validation: jax 0.11.0 → 0.12.1, this editionFresh full builds of
Compared page by page with the series method (
Merge order stands: #152 first, then this PR. With this PR alone, the lecture's cell would reinstall 0.11.0 (the version that works; 0.11.1 was the one that hung), so the order matters for the pin, not for the build passing. The temporary |
mmcky
added a commit
that referenced
this pull request
Nov 23, 2026
…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>
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.
What
This moves this edition's three workflow pins from jax 0.11.0 to 0.12.1, the lecture baseline's new version (QuantEcon/lectures'
_base/environment-update.yml). The English edition moved its workflows and thenumpy_vs_numba_vs_jaxinstall cell together in QuantEcon/lecture-python-programming#665 on 2026-11-19. The cell reaches this edition through the translation-sync PR #152; the sync doesn't carry workflows, so this PR is the other half.cache.yml,ci.yml,publish.ymlpip install "jax==0.11.0"becomes"jax==0.12.1"; the comment above it says why it's pinned, worded as in the English editionMerge order
Merge as a set with #152: #152 first, then this PR. Either half builds on its own. With only #152 merged, the workflow installs 0.11.0 and the lecture's cell reinstalls 0.12.1 partway through the build, as #152's preview did. With only this PR merged, the cell reinstalls 0.11.0. Together, a build installs 0.12.1 once and the cell reinstalls nothing. The same pair is open in each of the three programming translations (fr, fa, zh-cn), and QuantEcon/workspace-lectures#49 tracks the set.
Validation
jax 0.12.1 runs
numpy_vs_numba_vs_jaxwithout the 0.11.1 hang: in the English edition's test build (QuantEcon/lecture-python-programming run 44470126047) and its scheduled cache build on main on 2026-11-23, and in this edition in #152's preview (run 44477962798, 2026-11-19), which executed the lecture in 10.9 s with the cell on 0.12.1. That preview deploys no page and keeps no artifact, so the version the cell installed there can't be read back; in the fr and fa editions' matching previews it was 0.12.1. This PR's own preview reuses main's build cache and re-executes only changed lectures, so it doesn't run the lecture again. The full execution on 0.12.1 iscache.yml's run on main after the set merges.🤖 Generated with Claude Code
https://claude.ai/code/session_01WT8bMbNM8AQVCt2pfV5GGX