Skip to content

Commit 299971f

Browse files
2 parents f4e7516 + d695a10 commit 299971f

Some content is hidden

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

45 files changed

+2832
-465
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
auto-update-conda: true
1616
auto-activate-base: true
1717
miniconda-version: 'latest'
18-
python-version: "3.12"
18+
python-version: "3.13"
1919
environment-file: environment.yml
2020
activate-environment: quantecon
2121
- name: Install JAX, Numpyro, PyTorch

.github/workflows/collab.yml

Lines changed: 47 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
name: Build Project on Google Collab (Execution)
2-
on: [pull_request]
2+
on:
3+
schedule:
4+
# Execute weekly on Monday at 4am UTC (offset from cache.yml)
5+
- cron: '0 4 * * 1'
6+
workflow_dispatch:
37
jobs:
48
execution-checks:
59
runs-on: "runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=ubuntu24-gpu-x64/disk=large"
10+
permissions:
11+
issues: write # required for creating issues on execution failure
612
container:
713
image: docker://us-docker.pkg.dev/colab-images/public/runtime:latest
814
options: --gpus all
915
steps:
1016
- uses: actions/checkout@v5
11-
with:
12-
ref: ${{ github.event.pull_request.head.sha }}
1317
# Install build software
1418
- name: Install Build Software & LaTeX
1519
shell: bash -l {0}
@@ -46,6 +50,46 @@ jobs:
4650
with:
4751
name: execution-reports
4852
path: _build/html/reports
53+
- name: Create execution failure report
54+
if: failure()
55+
run: |
56+
cat > execution-failure-report.md << 'EOF'
57+
# Colab Execution Failure Report
58+
59+
The weekly Google Colab execution check has failed. This indicates that one or more notebooks failed to execute properly in the Colab environment.
60+
61+
## Details
62+
63+
**Workflow Run:** [${{ github.run_id }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
64+
**Date:** ${{ github.event.head_commit.timestamp || github.event.schedule }}
65+
**Branch:** ${{ github.ref_name }}
66+
**Commit:** ${{ github.sha }}
67+
68+
## Execution Reports
69+
70+
Detailed execution reports have been uploaded as artifacts to this workflow run. Please check the following:
71+
72+
1. Download the `execution-reports` artifact from the workflow run
73+
2. Review the failed notebook execution logs
74+
3. Fix any execution issues in the notebooks
75+
4. Test locally or in Colab before merging
76+
77+
## Next Steps
78+
79+
1. Investigate the failure by reviewing the execution reports
80+
2. Fix the identified issues
81+
3. Test the fixes
82+
4. Close this issue once resolved
83+
84+
This is an automated issue created by the weekly Colab execution check.
85+
EOF
86+
- name: Create Issue on Execution Failure
87+
if: failure()
88+
uses: peter-evans/create-issue-from-file@v5
89+
with:
90+
title: "Weekly Colab Execution Check Failed - ${{ github.run_id }}"
91+
content-filepath: execution-failure-report.md
92+
labels: execution-failure, automated-issue, colab
4993
- name: Preview Deploy to Netlify
5094
uses: nwtgck/actions-netlify@v3
5195
with:

.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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ sphinx:
9898
advanced:
9999
- "https://python-advanced.quantecon.org"
100100
- null
101+
jax:
102+
- "https://jax.quantecon.org/"
103+
- null
101104
mathjax3_config:
102105
tex:
103106
macros:

lectures/_static/quant-econ.bib

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
Note: Extended Information (like abstracts, doi, url's etc.) can be found in quant-econ-extendedinfo.bib file in _static/
44
###
55
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+
616
@article{shannon1948mathematical,
717
title={A mathematical theory of communication},
818
author={Shannon, Claude E},

lectures/_toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ parts:
105105
- file: markov_perf
106106
- file: uncertainty_traps
107107
- file: aiyagari
108+
- file: ak_aiyagari
108109
- caption: Asset Pricing and Finance
109110
numbered: true
110111
chapters:

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

0 commit comments

Comments
 (0)