Skip to content

Commit abe6344

Browse files
authored
ENH: Upgrade to jupyter-book==0.15.1 + Associated Packages (#267)
* MAINT: Upgrade to jupyter-book==0.15.1 * update to latest combination of packages * upgrade to quantecon.docker:py39-anaconda-2022-10-jb-0.15.1 * update cache and publish workflows
1 parent d27d526 commit abe6344

File tree

5 files changed

+17
-19
lines changed

5 files changed

+17
-19
lines changed

.github/workflows/cache.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
needs: deploy-runner
2828
runs-on: [self-hosted, cml-gpu]
2929
container:
30-
image: docker://mmcky/quantecon-lecture-python:py39-anaconda-2022-10
30+
image: docker://mmcky/quantecon-lecture-python:py39-anaconda-2022-10-jb-0.15.1
3131
options: --gpus all
3232
steps:
3333
- uses: actions/checkout@v3
@@ -37,7 +37,7 @@ jobs:
3737
- name: Install Jax and Upgrade CUDA
3838
shell: bash -l {0}
3939
run: |
40-
pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
40+
pip install --upgrade "jax[cuda]==0.4.2" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
4141
pip install --upgrade "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
4242
nvidia-smi
4343
- name: Build HTML

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
needs: deploy-runner
2525
runs-on: [self-hosted, cml-gpu]
2626
container:
27-
image: docker://mmcky/quantecon-lecture-python:py39-anaconda-2022-10
27+
image: docker://mmcky/quantecon-lecture-python:py39-anaconda-2022-10-jb-0.15.1
2828
options: --gpus all
2929
steps:
3030
- uses: actions/checkout@v3
@@ -34,7 +34,7 @@ jobs:
3434
- name: Install Jax and Upgrade CUDA
3535
shell: bash -l {0}
3636
run: |
37-
pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
37+
pip install --upgrade "jax[cuda]==0.4.2" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
3838
pip install --upgrade "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
3939
nvidia-smi
4040
- name: Display Conda Environment Versions

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
needs: deploy-runner
2929
runs-on: [self-hosted, cml-gpu]
3030
container:
31-
image: docker://mmcky/quantecon-lecture-python:py39-anaconda-2022-10
31+
image: docker://mmcky/quantecon-lecture-python:py39-anaconda-2022-10-jb-0.15.1
3232
options: --gpus all
3333
steps:
3434
- name: Checkout
@@ -37,7 +37,7 @@ jobs:
3737
- name: Install Jax and Upgrade CUDA
3838
shell: bash -l {0}
3939
run: |
40-
pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
40+
pip install --upgrade "jax[cuda]==0.4.2" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
4141
pip install --upgrade "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
4242
nvidia-smi
4343
- name: Display Conda Environment Versions

environment.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,18 @@ dependencies:
66
- anaconda=2022.10
77
- pip
88
- pip:
9-
- jupyter-book==0.12.3
10-
- quantecon-book-theme==0.3.1
11-
- sphinx-tojupyter==0.2.1
9+
- jupyter-book==0.15.1
10+
- quantecon-book-theme==0.4.1
11+
- sphinx-tojupyter==0.3.0
1212
- sphinxext-rediraffe==0.2.7
13-
- sphinx-exercise==0.4.0
13+
- sphinx-exercise==0.4.1
1414
- ghp-import==1.1.0
1515
- sphinxcontrib-youtube==1.1.0
1616
- sphinx-togglebutton==0.3.1
17-
- quantecon
17+
# Docker Requirements
18+
- pytz
19+
# Additional Requirements
1820
- array-to-latex
1921
- prettytable
20-
# Sandpit Requirements
21-
# - PuLP
22-
# - cvxpy
23-
# - cvxopt
24-
# - cylp
22+
2523

lectures/_config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ title: Python Programming for Economics and Finance
22
author: Thomas J. Sargent & John Stachurski
33
logo: _static/qe-logo.png
44
description: This website presents a set of lectures on python programming for economics, designed and written by Thomas J. Sargent and John Stachurski.
5+
analytics:
6+
google_analytics_id: UA-54984338-9
57

68
execute:
79
execute_notebooks: "cache"
810
timeout: 600 # 10 minutes
9-
# run_in_temp: true
1011

1112
html:
1213
baseurl: https://python.quantecon.org/
@@ -31,13 +32,12 @@ sphinx:
3132
og_logo_url: https://assets.quantecon.org/img/qe-og-logo.png
3233
description: This website presents a set of lectures on python programming for economics, designed and written by Thomas J. Sargent and John Stachurski.
3334
keywords: Python, QuantEcon, Quantitative Economics, Economics, Sloan, Alfred P. Sloan Foundation, Tom J. Sargent, John Stachurski
34-
google_analytics_id: UA-54984338-9
3535
launch_buttons:
3636
notebook_interface : classic # The interface interactive links will activate ["classic", "jupyterlab"]
3737
binderhub_url : https://mybinder.org # The URL of the BinderHub (e.g., https://mybinder.org)
3838
colab_url : https://colab.research.google.com
3939
thebe : false # Add a thebe button to pages (requires the repository to run on Binder)
40-
mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-svg.js
40+
mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
4141
rediraffe_redirects:
4242
index_toc.md: intro.md
4343
tojupyter_static_file_path: ["source/_static", "_static"]

0 commit comments

Comments
 (0)