Skip to content

Pin jax at 0.12.1 in the workflows, the shared baseline's new version - #114

Merged
mmcky merged 1 commit into
mainfrom
env-jax-0.12.1
Nov 23, 2026
Merged

mmcky merged 1 commit into
mainfrom
env-jax-0.12.1

Conversation

@mmcky

@mmcky mmcky commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

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 the numpy_vs_numba_vs_jax install cell together in QuantEcon/lecture-python-programming#665 on 2026-11-19. The cell reaches this edition through the translation-sync PR #111; the sync doesn't carry workflows, so this PR is the other half.

File Change
cache.yml, ci.yml, publish.yml pip install "jax==0.11.0" becomes "jax==0.12.1"; the comment above it says why it's pinned, worded as in the English edition

Merge order

Merge as a set with #111: #111 first, then this PR. Either half builds on its own. With only #111 merged, the workflow installs 0.11.0 and the lecture's cell reinstalls 0.12.1 partway through the build, as #111'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_jax without 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 #111's preview (run 44477978421, 2026-11-19): the workflow installed 0.11.0, the lecture's cell then installed jax 0.12.1 (its output on the preview page reads Successfully installed jax-0.12.1 jaxlib-0.12.1), and the lecture executed in 11.8 s. 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 is cache.yml's run on main after the set merges.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMbNM8AQVCt2pfV5GGX

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
@github-actions

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-114--verdant-toffee-3261a8.netlify.app

Commit: 920bf35


Build Info

@mmcky

mmcky commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Full validation: jax 0.11.0 → 0.12.1, this edition

Fresh full builds of cache.yml on 2026-11-23, every lecture executed, no build cache:

Side Run Commit Result
main (jax 0.11.0 in the workflows and the cell) 45129278689 5b8a68b success
validate/jax-0.12.1 = main + #111's change + this PR's commit (0.12.1 in both) 45129478390 6bbea09 success

Compared page by page with the series method (fullval.sh, fv-classify.py):

  • Build warnings: identical on both sides; none new.
  • Prose: changes only in numpy_vs_numba_vs_jax (the install line, "jax==0.11.0" → "jax==0.12.1") and status.html (timings). 31 pages, 19 with any difference.
  • The three jax lectures: jax_intro changes only in pip's output (jax 0.11.0 → 0.12.1 already satisfied). numpy_vs_numba_vs_jax reports jax==0.12.1 already satisfied, so the cell reinstalls nothing once both halves are in. autodiff also changes its gradient-descent estimate, [0.0444 -0.1339 0.5845 0.9945] → [0.0359 -0.1211 0.5793 0.9949]; it's the same on every build of a given jax version, and the English edition's validation of Pin jax at 0.12.1, the shared baseline's new version lecture-python-programming#665 recorded the same change there. No prose quotes those values.
  • Pre-existing, not new: numpy_vs_numba_vs_jax's cell output carries DeprecationWarning: backend and device argument on jit is deprecated twice, on both sides alike (only the ipykernel temp path differs). It's there on 0.11.0 too, so it's outside this change.
  • Other pages: differences in cell output only (timings, memory addresses and the like)

Merge order stands: #111 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 validate/jax-0.12.1 branch goes once the set has merged.

mmcky added a commit that referenced this pull request Nov 23, 2026
…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>
@mmcky
mmcky merged commit 43a186b into main Nov 23, 2026
3 checks passed
@mmcky
mmcky deleted the env-jax-0.12.1 branch November 23, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant