Skip to content

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

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 #186; 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 #186: #186 first, then this PR. Either half builds on its own. With only #186 merged, the workflow installs 0.11.0 and the lecture's cell reinstalls 0.12.1 partway through the build, as #186'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 #186's preview (run 44477966416, 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 13.5 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
@netlify

netlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for majestic-griffin-10b166 ready!

Name Link
🔨 Latest commit 7cd7efd
🔍 Latest deploy log https://app.netlify.com/projects/majestic-griffin-10b166/deploys/6b03e20b79ce4b418b2dab0b
😎 Deploy Preview https://deploy-preview-187--majestic-griffin-10b166.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

Copy link
Copy Markdown

@github-actions
github-actions Bot temporarily deployed to pull request November 23, 2026 06:54 Inactive
@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) 45129298858 f4903d1 success
validate/jax-0.12.1 = main + #186's change + this PR's commit (0.12.1 in both) 45129485892 6e1f93a 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, 18 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.
  • Other pages: differences in cell output only (timings, memory addresses and the like)

Merge order stands: #186 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 (#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>
@mmcky
mmcky merged commit 2f2f510 into main Nov 23, 2026
8 checks passed
@mmcky
mmcky deleted the env-jax-0.12.1 branch November 23, 2026 08:08

This branch was previously deployed

1 inactive deployment
pull request — 7cd7efd5 Deployed Nov 23, 2026 by github-actions[bot]
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