Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,16 @@ updates:
prefix: ⬆️
schedule:
interval: weekly

- package-ecosystem: "conda"
directory: "/"
commit-message:
prefix: ⬆️
schedule:
interval: weekly
ignore:
- dependency-name: "jupyter-book"
versions: [">=2.0"]
- dependency-name: "python"
# Python version should be constrained by the anaconda distribution version
versions: [">0"]
2 changes: 1 addition & 1 deletion .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Build HTML
shell: bash -l {0}
run: |
jb build lectures --path-output ./ --keep-going
jb build lectures --path-output ./ -n -W --keep-going
- name: Upload Execution Reports (HTML)
uses: actions/upload-artifact@v4
if: failure()
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
branch: main
name: build-cache
path: _build
# # Build Assets (Download Notebooks and PDF via LaTeX)
# Build Assets (Download Notebooks and PDF via LaTeX)
# - name: Build PDF from LaTeX
# shell: bash -l {0}
# run: |
Expand All @@ -71,7 +71,7 @@ jobs:
- name: Build HTML
shell: bash -l {0}
run: |
jb build lectures --path-output ./ --keep-going
jb build lectures --path-output ./ -n -W --keep-going
- name: Upload Execution Reports (HTML)
uses: actions/upload-artifact@v4
if: failure()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Build HTML
shell: bash -l {0}
run: |
jb build lectures --path-output ./
jb build lectures --path-output ./ -n -W --keep-going
# Create HTML archive for release assets
- name: Create HTML archive
shell: bash -l {0}
Expand Down
6 changes: 3 additions & 3 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ channels:
- default
dependencies:
- python=3.13
- anaconda=2025.06
- anaconda=2025.12
- pip
- pip:
- jupyter-book==1.0.4post1
- quantecon-book-theme==0.10.1
- jupyter-book>=1.0.4post1,<2.0
- quantecon-book-theme==0.15.1
- sphinx-tojupyter==0.3.1
- sphinxext-rediraffe==0.2.7
- sphinx-exercise==1.2.0
Expand Down
2 changes: 2 additions & 0 deletions lectures/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ sphinx:
# false-positive links
linkcheck_ignore: ['https://online.stat.psu.edu/stat415/book/export/html/834']
bibtex_reference_style: author_year
nb_merge_streams: true
nb_mime_priority_overrides: [
# HTML
['html', 'application/vnd.jupyter.widget-view+json', 10],
Expand Down Expand Up @@ -82,6 +83,7 @@ sphinx:
header_organisation: QuantEcon
repository_url: https://github.com/QuantEcon/lecture-python.myst
nb_repository_url: https://github.com/QuantEcon/lecture-python.zh-cn.notebooks
path_to_docs: lectures
twitter: quantecon
twitter_logo_url: https://assets.quantecon.org/img/qe-twitter-logo.png
og_logo_url: https://assets.quantecon.org/img/qe-og-logo.png
Expand Down
2 changes: 1 addition & 1 deletion lectures/_static/lecture_specific/optgrowth_fast/ogm.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self,


def f(self, k):
"生产函数"
"生产函数"
return k**self.α


Expand Down
4 changes: 2 additions & 2 deletions lectures/back_prop.md
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ Image(fig.to_image(format="png"))
```{code-cell} ipython3
## 检查环境中是否启用了gpu

from jax.lib import xla_bridge
print(xla_bridge.get_backend().platform)
import jax.extend
print(jax.extend.backend.get_backend().platform)
```

```{note}
Expand Down
1 change: 1 addition & 0 deletions lectures/bayes_nonconj.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ kernelspec:
# install dependencies
!pip install numpyro pyro-ppl torch jax
```

```{code-cell} ipython3
import numpy as np
import seaborn as sns
Expand Down
2 changes: 1 addition & 1 deletion lectures/house_auction.md
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ def submit_bid(loser_list, p, ϵ, v, bid_info):
```

```{code-cell} ipython3
p,bid_info = submit_bid(失败者列表, p, ϵ, v, bid_info)
p,bid_info = submit_bid(loser_list, p, ϵ, v, bid_info)
```

```{code-cell} ipython3
Expand Down
1 change: 1 addition & 0 deletions lectures/imp_sample.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ kernelspec:
import numpy as np
from numba import jit, vectorize, prange
import matplotlib.pyplot as plt
import matplotlib as mpl
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
mpl.font_manager.fontManager.addfont(FONTPATH)
plt.rcParams['font.family'] = ['Source Han Serif SC']
Expand Down
2 changes: 2 additions & 0 deletions lectures/likelihood_bayes.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ kernelspec:
```{code-cell} ipython3
:hide-output: false

import matplotlib.pyplot as plt
import matplotlib as mpl
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
mpl.font_manager.fontManager.addfont(FONTPATH)
plt.rcParams['font.family'] = ['Source Han Serif SC']
Expand Down
1 change: 1 addition & 0 deletions lectures/likelihood_ratio_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ kernelspec:

```{code-cell} ipython3
import matplotlib.pyplot as plt
import matplotlib as mpl
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
mpl.font_manager.fontManager.addfont(FONTPATH)
plt.rcParams['font.family'] = ['Source Han Serif SC']
Expand Down
1 change: 1 addition & 0 deletions lectures/likelihood_ratio_process_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Blume和Easley构建了正式模型,研究关于风险收入过程概率的不

```{code-cell} ipython3
import matplotlib.pyplot as plt
import matplotlib as mpl
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
mpl.font_manager.fontManager.addfont(FONTPATH)
plt.rcParams['font.family'] = ['Source Han Serif SC']
Expand Down
1 change: 1 addition & 0 deletions lectures/likelihood_var.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ kernelspec:
```{code-cell} ipython3
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
mpl.font_manager.fontManager.addfont(FONTPATH)
plt.rcParams['font.family'] = ['Source Han Serif SC']
Expand Down
1 change: 1 addition & 0 deletions lectures/mix_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ $$
:hide-output: false

import matplotlib.pyplot as plt
import matplotlib as mpl
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
mpl.font_manager.fontManager.addfont(FONTPATH)
plt.rcParams['font.family'] = ['Source Han Serif SC']
Expand Down
1 change: 1 addition & 0 deletions lectures/wald_friedman_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ kernelspec:
```{code-cell} ipython3
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
mpl.font_manager.fontManager.addfont(FONTPATH)
plt.rcParams['font.family'] = ['Source Han Serif SC']
Expand Down
Loading