diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 8eb18905b..e5562ab79 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -23,7 +23,8 @@ jobs: - name: Install JAX and Numpyro shell: bash -l {0} run: | - pip install -U "jax[cuda13]" + # Pinned to the lecture baseline, QuantEcon/lectures' _base/environment-update.yml. + pip install "jax[cuda13]==0.12.1" pip install numpyro python scripts/test-jax-install.py - name: Build matplotlib's font cache diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88f64be48..fb498aa4a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,8 @@ jobs: - name: Install JAX and Numpyro shell: bash -l {0} run: | - pip install -U "jax[cuda13]" + # Pinned to the lecture baseline, QuantEcon/lectures' _base/environment-update.yml. + pip install "jax[cuda13]==0.12.1" pip install numpyro python scripts/test-jax-install.py - name: Build matplotlib's font cache diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5efe21030..e67432f8a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -40,7 +40,8 @@ jobs: - name: Install JAX and Numpyro shell: bash -l {0} run: | - pip install -U "jax[cuda13]" + # Pinned to the lecture baseline, QuantEcon/lectures' _base/environment-update.yml. + pip install "jax[cuda13]==0.12.1" pip install numpyro python scripts/test-jax-install.py - name: Build matplotlib's font cache diff --git a/environment.yml b/environment.yml index 7314f0d16..7f8accaea 100644 --- a/environment.yml +++ b/environment.yml @@ -7,11 +7,11 @@ dependencies: - pip - pip: - jupyter-book>=1.0.4post1,<2.0 - - quantecon-book-theme==0.22.1 + - quantecon-book-theme==0.22.2 - sphinx-tojupyter==0.6.0 - sphinxext-rediraffe==0.3.0 - sphinx-exercise==1.2.2 - - sphinx-proof==0.4.0 + - sphinx-proof==0.4.1 - sphinxcontrib-youtube==1.5.0 - sphinx-togglebutton==0.4.5 - sphinx-reredirects==1.1.0 diff --git a/lectures/ak2.md b/lectures/ak2.md index 086055e74..76a3716c2 100644 --- a/lectures/ak2.md +++ b/lectures/ak2.md @@ -26,7 +26,7 @@ In addition to what’s in Anaconda, this lecture will need the following librar ```{code-cell} ipython3 :tags: [hide-output] -!pip install --upgrade quantecon +!pip install quantecon ``` ## Overview diff --git a/lectures/back_prop.md b/lectures/back_prop.md index 03c6d881d..82787db44 100644 --- a/lectures/back_prop.md +++ b/lectures/back_prop.md @@ -21,27 +21,19 @@ In addition to what's included in base Anaconda, we need to install the followin ```{code-cell} ipython3 :tags: [hide-output] -!pip install -U kaleido plotly -!conda install -y -c plotly plotly-orca +!pip install "kaleido>=1" "plotly>=6.1" # kaleido needs chrome to build images import kaleido kaleido.get_chrome_sync() ``` -```{note} -If you are running this on Google Colab the above cell will -present an error. This is because Google Colab doesn't use Anaconda to manage -the Python packages. However this lecture will still execute as Google Colab -has `plotly` installed. -``` - We also need to install JAX to run this lecture ```{code-cell} ipython3 :tags: [skip-execution] -!pip install --upgrade jax +!pip install jax ``` ```{code-cell} ipython3 diff --git a/lectures/kesten_processes.md b/lectures/kesten_processes.md index b704d6358..da3651649 100644 --- a/lectures/kesten_processes.md +++ b/lectures/kesten_processes.md @@ -36,7 +36,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie ```{code-cell} ipython3 :tags: [hide-output] -!pip install --upgrade quantecon yfinance +!pip install quantecon yfinance !pip install jax ``` diff --git a/lectures/likelihood_ratio_process.md b/lectures/likelihood_ratio_process.md index 7375685e7..7b4c3e8f9 100644 --- a/lectures/likelihood_ratio_process.md +++ b/lectures/likelihood_ratio_process.md @@ -30,7 +30,7 @@ In addition to what’s in Anaconda, this lecture will need the following librar ```{code-cell} ipython3 :tags: [hide-output] -!pip install --upgrade quantecon +!pip install quantecon ``` ## Overview diff --git a/lectures/opt_transport.md b/lectures/opt_transport.md index 67ae95a91..3002f038d 100644 --- a/lectures/opt_transport.md +++ b/lectures/opt_transport.md @@ -44,8 +44,8 @@ several implementations of linear programming, including, in order, ```{code-cell} ipython3 :tags: [hide-output] -!pip install --upgrade quantecon -!pip install --upgrade POT +!pip install quantecon +!pip install POT ``` Let's start with some imports. diff --git a/lectures/pandas_panel.md b/lectures/pandas_panel.md index 37eb7f82e..e17d6c626 100644 --- a/lectures/pandas_panel.md +++ b/lectures/pandas_panel.md @@ -30,7 +30,7 @@ In addition to what’s in Anaconda, this lecture will need the following librar ```{code-cell} ipython3 :tags: [hide-output] -!pip install --upgrade seaborn +!pip install seaborn ``` We use the following imports. diff --git a/lectures/robust_permanent_income.md b/lectures/robust_permanent_income.md index 90c9134a7..b56859056 100644 --- a/lectures/robust_permanent_income.md +++ b/lectures/robust_permanent_income.md @@ -30,7 +30,7 @@ In addition to what's in Anaconda, this lecture will need the following librarie ```{code-cell} ipython3 :tags: [hide-output] -!pip install --upgrade quantecon +!pip install quantecon ``` ## Overview