Skip to content

Commit 6071051

Browse files
mmckyclaude
andauthored
Raise the build stack to the shared baseline, pin jax 0.12.1, drop --upgrade from install lines (#1135)
Raises intermediate's build stack to the shared baseline (quantecon-book-theme 0.22.2, sphinx-proof 0.4.1), pins jax[cuda13]==0.12.1 in cache.yml, ci.yml and publish.yml in place of the newest jax, drops --upgrade from eight install lines, and in back_prop installs "kaleido>=1" "plotly>=6.1" in place of upgrading both, removing the plotly-orca conda line and its Colab note. Content reviewed by a person: @mmcky, who answered "Reviewed, merge" to this exact diff in the organiser session. A full site validation (fresh no-cache GPU builds of main and this PR, both on jax 0.12.1, every lecture executed), plus the Colab check, found no new warning and no regression; the summary is the PR's validation comment. Co-authored-by: Claude Opus 5.5 <[email protected]>
1 parent eb2ba52 commit 6071051

11 files changed

Lines changed: 17 additions & 22 deletions

‎.github/workflows/cache.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
- name: Install JAX and Numpyro
2424
shell: bash -l {0}
2525
run: |
26-
pip install -U "jax[cuda13]"
26+
# Pinned to the lecture baseline, QuantEcon/lectures' _base/environment-update.yml.
27+
pip install "jax[cuda13]==0.12.1"
2728
pip install numpyro
2829
python scripts/test-jax-install.py
2930
- name: Build matplotlib's font cache

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ jobs:
3434
- name: Install JAX and Numpyro
3535
shell: bash -l {0}
3636
run: |
37-
pip install -U "jax[cuda13]"
37+
# Pinned to the lecture baseline, QuantEcon/lectures' _base/environment-update.yml.
38+
pip install "jax[cuda13]==0.12.1"
3839
pip install numpyro
3940
python scripts/test-jax-install.py
4041
- name: Build matplotlib's font cache

‎.github/workflows/publish.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ jobs:
4040
- name: Install JAX and Numpyro
4141
shell: bash -l {0}
4242
run: |
43-
pip install -U "jax[cuda13]"
43+
# Pinned to the lecture baseline, QuantEcon/lectures' _base/environment-update.yml.
44+
pip install "jax[cuda13]==0.12.1"
4445
pip install numpyro
4546
python scripts/test-jax-install.py
4647
- name: Build matplotlib's font cache

‎environment.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ dependencies:
77
- pip
88
- pip:
99
- jupyter-book>=1.0.4post1,<2.0
10-
- quantecon-book-theme==0.22.1
10+
- quantecon-book-theme==0.22.2
1111
- sphinx-tojupyter==0.6.0
1212
- sphinxext-rediraffe==0.3.0
1313
- sphinx-exercise==1.2.2
14-
- sphinx-proof==0.4.0
14+
- sphinx-proof==0.4.1
1515
- sphinxcontrib-youtube==1.5.0
1616
- sphinx-togglebutton==0.4.5
1717
- sphinx-reredirects==1.1.0

‎lectures/ak2.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ In addition to what’s in Anaconda, this lecture will need the following librar
2626

2727
```{code-cell} ipython3
2828
:tags: [hide-output]
29-
!pip install --upgrade quantecon
29+
!pip install quantecon
3030
```
3131

3232
## Overview

‎lectures/back_prop.md‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,19 @@ In addition to what's included in base Anaconda, we need to install the followin
2121
```{code-cell} ipython3
2222
:tags: [hide-output]
2323
24-
!pip install -U kaleido plotly
25-
!conda install -y -c plotly plotly-orca
24+
!pip install "kaleido>=1" "plotly>=6.1"
2625
2726
# kaleido needs chrome to build images
2827
import kaleido
2928
kaleido.get_chrome_sync()
3029
```
3130

32-
```{note}
33-
If you are running this on Google Colab the above cell will
34-
present an error. This is because Google Colab doesn't use Anaconda to manage
35-
the Python packages. However this lecture will still execute as Google Colab
36-
has `plotly` installed.
37-
```
38-
3931
We also need to install JAX to run this lecture
4032

4133
```{code-cell} ipython3
4234
:tags: [skip-execution]
4335
44-
!pip install --upgrade jax
36+
!pip install jax
4537
```
4638

4739
```{code-cell} ipython3

‎lectures/kesten_processes.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie
3636
```{code-cell} ipython3
3737
:tags: [hide-output]
3838
39-
!pip install --upgrade quantecon yfinance
39+
!pip install quantecon yfinance
4040
!pip install jax
4141
```
4242

‎lectures/likelihood_ratio_process.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ In addition to what’s in Anaconda, this lecture will need the following librar
3030

3131
```{code-cell} ipython3
3232
:tags: [hide-output]
33-
!pip install --upgrade quantecon
33+
!pip install quantecon
3434
```
3535

3636
## Overview

‎lectures/opt_transport.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ several implementations of linear programming, including, in order,
4444
```{code-cell} ipython3
4545
:tags: [hide-output]
4646
47-
!pip install --upgrade quantecon
48-
!pip install --upgrade POT
47+
!pip install quantecon
48+
!pip install POT
4949
```
5050

5151
Let's start with some imports.

‎lectures/pandas_panel.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ In addition to what’s in Anaconda, this lecture will need the following librar
3030
```{code-cell} ipython3
3131
:tags: [hide-output]
3232
33-
!pip install --upgrade seaborn
33+
!pip install seaborn
3434
```
3535

3636
We use the following imports.

0 commit comments

Comments
 (0)