From 8ff5ebdf1e13460451d1758a63ff33719814c938 Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Mon, 22 Dec 2025 12:11:44 +1100 Subject: [PATCH 1/3] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20build=20soft?= =?UTF-8?q?ware=20and=20dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Upgrade anaconda to 2025.12 - Upgrade quantecon-book-theme to 0.15.1 - Add jupyter-book version constraint (<2.0) - Configure Dependabot for conda ecosystem with jupyter-book restriction - Temporarily disable build cache for full execution check --- .github/dependabot.yml | 10 ++++++++++ .github/workflows/ci.yml | 10 +++++----- environment.yml | 6 +++--- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7809c2a97..bb2ad36d2 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,3 +11,13 @@ updates: prefix: ⬆️ schedule: interval: weekly + + - package-ecosystem: "conda" + directory: "/" + commit-message: + prefix: ⬆️ + schedule: + interval: weekly + ignore: + - dependency-name: "jupyter-book" + versions: [">=2.0"] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f418e0b10..64d035d8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,11 +43,11 @@ jobs: - name: Display Pip Versions shell: bash -l {0} run: pip list - - name: Download "build" folder (cache) - uses: dawidd6/action-download-artifact@v11 - with: - workflow: cache.yml - branch: main + # - name: Download "build" folder (cache) + # uses: dawidd6/action-download-artifact@v11 + # with: + # workflow: cache.yml + # branch: main name: build-cache path: _build # Build Assets (Download Notebooks and PDF via LaTeX) diff --git a/environment.yml b/environment.yml index adb1b2856..58b7cc019 100644 --- a/environment.yml +++ b/environment.yml @@ -3,11 +3,11 @@ channels: - default dependencies: - python=3.13 - - anaconda=2025.06 + - anaconda=2025.12 - pip - pip: - - jupyter-book==1.0.4post1 - - quantecon-book-theme==0.15.0 + - jupyter-book>=1.0.4post1,<2.0 + - quantecon-book-theme==0.15.1 - sphinx-tojupyter==0.4.0 - sphinxext-rediraffe==0.2.7 - sphinx-exercise==1.2.0 From 3d9b42dc304a751f0be7d159a2be8cc87c9ca30c Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Mon, 22 Dec 2025 12:16:36 +1100 Subject: [PATCH 2/3] Fix YAML syntax error in ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64d035d8e..55cdc9124 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,8 +48,8 @@ jobs: # with: # workflow: cache.yml # branch: main - name: build-cache - path: _build + # name: build-cache + # path: _build # Build Assets (Download Notebooks and PDF via LaTeX) - name: Build Download Notebooks (sphinx-tojupyter) shell: bash -l {0} From 3caec0ba970788b1ad4233931e4a4abb9bbd680b Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Mon, 22 Dec 2025 15:51:02 +1100 Subject: [PATCH 3/3] Fix: Remove @jax.jit decorator from excess demand function e() The @jax.jit decorator on e() causes shape mismatch errors when the function is called with different dimensional inputs (2D vs 3D) throughout the notebook. Removing the decorator allows JAX to handle the function more flexibly. The newton() solver function still uses @jax.jit internally, so performance is maintained. --- lectures/newton_method.md | 1 - 1 file changed, 1 deletion(-) diff --git a/lectures/newton_method.md b/lectures/newton_method.md index 54194ca80..f39be1ac5 100644 --- a/lectures/newton_method.md +++ b/lectures/newton_method.md @@ -552,7 +552,6 @@ $$ The function below calculates the excess demand for given parameters ```{code-cell} ipython3 -@jax.jit def e(p, A, b, c): return jnp.exp(-A @ p) + c - b * jnp.sqrt(p) ```