Skip to content

Commit 87ba05f

Browse files
authored
Merge branch 'main' into ci-warnings-action
2 parents fdc0824 + 39b39c9 commit 87ba05f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+4888
-2200
lines changed

.github/workflows/cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
auto-update-conda: true
1818
auto-activate-base: true
1919
miniconda-version: 'latest'
20-
python-version: "3.12"
20+
python-version: "3.13"
2121
environment-file: environment.yml
2222
activate-environment: quantecon
2323
- name: Install JAX, Numpyro, PyTorch

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
auto-update-conda: true
1919
auto-activate-base: true
2020
miniconda-version: 'latest'
21-
python-version: "3.12"
21+
python-version: "3.13"
2222
environment-file: environment.yml
2323
activate-environment: quantecon
2424
- name: Install JAX, Numpyro, PyTorch
@@ -56,7 +56,7 @@ jobs:
5656
uses: actions/upload-artifact@v4
5757
if: failure()
5858
with:
59-
name: execution-reports
59+
name: execution-reports-notebooks
6060
path: _build/jupyter/reports
6161
- name: Build PDF from LaTeX
6262
shell: bash -l {0}

.github/workflows/linkcheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Link Checker (lychee)
22
on:
33
schedule:
44
# UTC 23:00 is early morning in Australia (9am)
5-
- cron: '0 23 * * *'
5+
- cron: '0 23 * * 1'
66
workflow_dispatch:
77
jobs:
88
link-checking:
@@ -21,7 +21,7 @@ jobs:
2121
uses: lycheeverse/lychee-action@v2
2222
with:
2323
fail: false
24-
args: --accept 403,503 *.html
24+
args: --accept 200,403,503 *.html
2525
- name: Create Issue From File
2626
if: steps.lychee.outputs.exit_code != 0
2727
uses: peter-evans/create-issue-from-file@v5

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
auto-update-conda: true
1717
auto-activate-base: true
1818
miniconda-version: 'latest'
19-
python-version: "3.12"
19+
python-version: "3.13"
2020
environment-file: environment.yml
2121
activate-environment: quantecon
2222
- name: Install JAX, Numpyro, PyTorch

environment.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@ name: quantecon
22
channels:
33
- default
44
dependencies:
5-
- python=3.12
6-
- anaconda=2024.10
5+
- python=3.13
6+
- anaconda=2025.06
77
- pip
88
- pip:
9-
- jupyter-book==1.0.3
10-
- quantecon-book-theme==0.7.6
11-
- sphinx-tojupyter==0.3.0
9+
- jupyter-book==1.0.4post1
10+
- quantecon-book-theme==0.9.0
11+
- sphinx-tojupyter==0.3.1
1212
- sphinxext-rediraffe==0.2.7
13-
- sphinx-reredirects==0.1.4
1413
- sphinx-exercise==1.0.1
15-
- sphinx-proof==0.2.0
16-
- ghp-import==1.1.0
17-
- sphinxcontrib-youtube==1.3.0 #Version 1.3.0 is required as quantecon-book-theme is only compatible with sphinx<=5
14+
- sphinx-proof==0.2.1
15+
- sphinxcontrib-youtube==1.4.1
1816
- sphinx-togglebutton==0.3.2
17+
- sphinx-reredirects==0.1.4
18+
19+

lectures/_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ sphinx:
3737
# false-positive links
3838
linkcheck_ignore: ['https://online.stat.psu.edu/stat415/book/export/html/834']
3939
bibtex_reference_style: author_year
40+
suppress_warnings: ["mystnb.unknown_mime_type"]
4041
nb_mime_priority_overrides: [
4142
# HTML
4243
['html', 'application/vnd.jupyter.widget-view+json', 10],
@@ -97,6 +98,9 @@ sphinx:
9798
advanced:
9899
- "https://python-advanced.quantecon.org"
99100
- null
101+
jax:
102+
- "https://jax.quantecon.org/"
103+
- null
100104
mathjax3_config:
101105
tex:
102106
macros:

lectures/_static/quant-econ.bib

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,46 @@
22
QuantEcon Bibliography File used in conjuction with sphinxcontrib-bibtex package
33
Note: Extended Information (like abstracts, doi, url's etc.) can be found in quant-econ-extendedinfo.bib file in _static/
44
###
5+
6+
@article{blume2018case,
7+
title={A case for incomplete markets},
8+
author={Blume, Lawrence E and Cogley, Timothy and Easley, David A and Sargent, Thomas J and Tsyrennikov, Viktor},
9+
journal={Journal of Economic Theory},
10+
volume={178},
11+
pages={191--221},
12+
year={2018},
13+
publisher={Elsevier}
14+
}
15+
16+
@article{shannon1948mathematical,
17+
title={A mathematical theory of communication},
18+
author={Shannon, Claude E},
19+
journal={The Bell system technical journal},
20+
volume={27},
21+
number={3},
22+
pages={379--423},
23+
year={1948},
24+
publisher={Nokia Bell Labs}
25+
}
26+
27+
@article{kullback1951information,
28+
title={On Information and Sufficiency},
29+
author={Kullback, Solomon and Leibler, Richard A},
30+
journal={The Annals of Mathematical Statistics},
31+
volume={22},
32+
number={1},
33+
pages={79--86},
34+
year={1951},
35+
publisher={JSTOR}
36+
}
37+
38+
@book{kullback1997information,
39+
title={Information theory and statistics},
40+
author={Kullback, Solomon},
41+
year={1997},
42+
publisher={Courier Corporation}
43+
}
44+
545
@book{friedman1953essays,
646
title={Essays in positive economics},
747
author={Friedman, Milton},

lectures/_toc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ parts:
3333
- caption: Statistics and Information
3434
numbered: true
3535
chapters:
36+
- file: divergence_measures
3637
- file: likelihood_ratio_process
38+
- file: likelihood_ratio_process_2
39+
- file: likelihood_var
3740
- file: imp_sample
3841
- file: wald_friedman
3942
- file: wald_friedman_2

lectures/aiyagari.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ Let's start with some imports:
5757

5858
```{code-cell} ipython3
5959
import matplotlib.pyplot as plt
60-
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
6160
import numpy as np
6261
from quantecon.markov import DiscreteDP
6362
from numba import jit

lectures/back_prop.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,17 @@ kernelspec:
1616
```{include} _admonition/gpu.md
1717
```
1818

19-
```{code-cell} ipython3
20-
:tags: [skip-execution]
21-
22-
!pip install --upgrade jax
23-
```
24-
25-
```{code-cell} ipython3
26-
import jax
27-
## to check that gpu is activated in environment
28-
print(f"JAX backend: {jax.devices()[0].platform}")
29-
```
30-
3119
In addition to what's included in base Anaconda, we need to install the following packages
3220

3321
```{code-cell} ipython3
3422
:tags: [hide-output]
3523
36-
!pip install kaleido
37-
!conda install -y -c plotly plotly plotly-orca retrying
24+
!pip install -U kaleido plotly
25+
!conda install -y -c plotly plotly-orca
26+
27+
# kaleido needs chrome to build images
28+
import kaleido
29+
kaleido.get_chrome_sync()
3830
```
3931

4032
```{note}
@@ -44,6 +36,19 @@ the Python packages. However this lecture will still execute as Google Colab
4436
has `plotly` installed.
4537
```
4638

39+
We also need to install JAX to run this lecture
40+
41+
```{code-cell} ipython3
42+
:tags: [skip-execution]
43+
44+
!pip install --upgrade jax
45+
```
46+
47+
```{code-cell} ipython3
48+
import jax
49+
print(f"JAX backend: {jax.devices()[0].platform}") # to check that gpu is activated in environment
50+
```
51+
4752
## Overview
4853

4954
Substantial parts of **machine learning** and **artificial intelligence** are about

0 commit comments

Comments
 (0)