From 920bf35b1fbcc5ab1e525b06c8c440d6033d5257 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Mon, 23 Nov 2026 17:44:50 +1100 Subject: [PATCH] Pin jax at 0.12.1 in the workflows, the shared baseline's new version 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 Claude-Session: https://claude.ai/code/session_01WT8bMbNM8AQVCt2pfV5GGX --- .github/workflows/cache.yml | 13 +++++++------ .github/workflows/ci.yml | 13 +++++++------ .github/workflows/publish.yml | 13 +++++++------ 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index ea96360..a7ce31f 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -20,12 +20,13 @@ jobs: - name: Install JAX (CPU, pinned) shell: bash -l {0} run: | - # Pinned: jax 0.11.1 (2026-08-17) hangs numpy_vs_numba_vs_jax's - # lax.fori_loop cells on the CPU path -- context is recorded in - # QuantEcon/workspace-lectures#49. With jax already present, the - # lecture's unpinned `!pip install quantecon jax` cell is satisfied - # and does not upgrade. - pip install "jax==0.11.0" + # Pinned to the lecture baseline, QuantEcon/lectures' + # _base/environment-update.yml, as in the English edition. jax 0.11.1 + # hung numpy_vs_numba_vs_jax's lax.fori_loop cells on the CPU path + # (QuantEcon/workspace-lectures#49); 0.12.1 runs them. The lecture's + # own install cell names the same version, so it is satisfied and + # reinstalls nothing. + pip install "jax==0.12.1" - name: Build HTML shell: bash -l {0} run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1fdc3d0..5f74075 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,12 +25,13 @@ jobs: - name: Install JAX (CPU, pinned) shell: bash -l {0} run: | - # Pinned: jax 0.11.1 (2026-08-17) hangs numpy_vs_numba_vs_jax's - # lax.fori_loop cells on the CPU path -- context is recorded in - # QuantEcon/workspace-lectures#49. With jax already present, the - # lecture's unpinned `!pip install quantecon jax` cell is satisfied - # and does not upgrade. - pip install "jax==0.11.0" + # Pinned to the lecture baseline, QuantEcon/lectures' + # _base/environment-update.yml, as in the English edition. jax 0.11.1 + # hung numpy_vs_numba_vs_jax's lax.fori_loop cells on the CPU path + # (QuantEcon/workspace-lectures#49); 0.12.1 runs them. The lecture's + # own install cell names the same version, so it is satisfied and + # reinstalls nothing. + pip install "jax==0.12.1" - name: Display Conda Environment Versions shell: bash -l {0} run: conda list diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 901e733..d656d46 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,12 +38,13 @@ jobs: - name: Install JAX (CPU, pinned) shell: bash -l {0} run: | - # Pinned: jax 0.11.1 (2026-08-17) hangs numpy_vs_numba_vs_jax's - # lax.fori_loop cells on the CPU path -- context is recorded in - # QuantEcon/workspace-lectures#49. With jax already present, the - # lecture's unpinned `!pip install quantecon jax` cell is satisfied - # and does not upgrade. - pip install "jax==0.11.0" + # Pinned to the lecture baseline, QuantEcon/lectures' + # _base/environment-update.yml, as in the English edition. jax 0.11.1 + # hung numpy_vs_numba_vs_jax's lax.fori_loop cells on the CPU path + # (QuantEcon/workspace-lectures#49); 0.12.1 runs them. The lecture's + # own install cell names the same version, so it is satisfied and + # reinstalls nothing. + pip install "jax==0.12.1" - name: Display Conda Environment Versions shell: bash -l {0} run: conda list