From 7aebda1e687aa7ab7c90feef86d4efb5fcf6961a Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Mon, 23 Nov 2026 17:44:52 +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 71c4906..f2b2e25 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -22,12 +22,13 @@ jobs: - name: Install JAX (CPU) 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/ci.yml b/.github/workflows/ci.yml index bdb1a15..4814f0d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,12 +22,13 @@ jobs: - name: Install JAX (CPU) 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 96d9104..41875d8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,12 +36,13 @@ jobs: - name: Install JAX (CPU) 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