Repository navigation
environment: jax 0.12.1; refresh numpy_vs_numba_vs_jax with its new pin - #76
Merged
Merged
Conversation
The owner moved the baseline's jax from 0.11.0 to 0.12.1 on 2026-11-19, once a test build showed 0.12.1 runs programming's numpy_vs_numba_vs_jax, whose lax.fori_loop cells hang on 0.11.1. Programming and jax now pin 0.12.1 upstream (QuantEcon/lecture-python-programming#665, QuantEcon/lecture-jax#374). The lecture's own install line pins jax exactly, so the list and the lecture move together: tools/promote numpy_vs_numba_vs_jax re-promotes it from programming at bae31ee, the same change the nightly refresh would make, and pool-check's install-listed rule 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.
🟢 Approval recommended
No active review issues remain for the JAX baseline and lecture pin update.
No open issues 🎉
What changed in this PR
Updates the planned shared environment to JAX 0.12.1 and re-promotes the matching programming lecture so its install pin stays aligned with the baseline. Existing site builds are unchanged because they do not yet use this environment.
Changes:
- Pins JAX to 0.12.1 in the baseline and lecture install command.
- Records the refreshed lecture’s source digest and promotion commit.
- Updates documentation and comments to explain the version change and matching GPU package.
| File | Description |
|---|---|
sync/ledger.yml |
Records the lecture’s updated source digest and promotion commit. |
lectures/numpy_vs_numba_vs_jax.md |
Updates the JAX install pin to 0.12.1. |
_base/README.md |
Revises the baseline rationale and GPU installation guidance. |
_base/environment-update.yml |
Pins JAX to 0.12.1 and updates explanatory comments. |
Review effort: Balanced
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 the baseline's jax from 0.11.0 to 0.12.1 (the owner's decision of 2026-11-19, QuantEcon/project-monorepo#77). Programming and jax already pin 0.12.1 upstream: QuantEcon/lecture-python-programming#665 and QuantEcon/lecture-jax#374.
_base/environment-update.ymljax==0.12.1. The comment now names 0.12.1 for the GPU build'sjax[cuda13], and drops jax from the exceptions to "the newest release", since 0.12.1 is the newest._base/README.mdlectures/numpy_vs_numba_vs_jax.md,sync/ledger.ymlbae31ee: its install line becomes!pip install quantecon "jax==0.12.1", and its ledger entry gets the new digest and pinWhy the lecture comes in this PR
The lecture pins jax exactly, so pool-check's
install-listedrule is red whenever the lecture and the list disagree. They can't move one after the other. If the list went first, this PR would be red. If the bot's refresh went first, the refresh would be red, as it is now on the refresh PR that follows today's sync. Editing the pool copy by hand would make drift-check report apool-editedviolation.So this PR re-promotes the one lecture with
tools/promote numpy_vs_numba_vs_jax, after a sync moved programming's pin tobae31ee(00cefa1, run 44485833962). The pool copy and the ledger record change exactly as the nightly refresh would change them. The lecture's change is the one already reviewed and merged in programming#665.After this merges, a drift-check run rebuilds
drift/refreshfrom main without this lecture, and its pool-check goes green.Checks
tools/pool-checkis clean on this branch:install-listedholds, with the list at 0.12.1 and the lecture atjax==0.12.1.pytest tools/tests: 322 passed, 1 skipped.uv pip compile, Python 3.13): jax and jaxlib 0.12.1, numpyro 0.22.0, optax 0.2.9 and keras 3.15.1.Nothing builds with the list yet, so no site changes.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL