Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 126eb49

Browse filesBrowse files
authored
ENH: Update Build Software (jb==1.04) and anaconda=2025.05 (#364)
* ADJ[pdf]: figure cannot be nested for pdf * update software environment * update to latest software * update python=3.13 for all workflows * tmp: remove build cache * Revert "tmp: remove build cache" This reverts commit ca80a0c. * upgrade to sphinx-tojupyter==0.3.1 * tmp: disable build cache * fix workspace.md * re-enable build cache * adjust image in getting_started * update code block output * fix synax warnings in matplotlib.md * remove FutureWarnings in pandas_panel
1 parent 9e0844e commit 126eb49
Copy full SHA for 126eb49

File tree

Expand file treeCollapse file tree

15 files changed

+42
-36
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

15 files changed

+42
-36
lines changed
Open diff view settings
Collapse file

‎.github/workflows/cache.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/cache.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
auto-update-conda: true
1515
auto-activate-base: true
1616
miniconda-version: 'latest'
17-
python-version: "3.12"
17+
python-version: "3.13"
1818
environment-file: environment.yml
1919
activate-environment: quantecon
2020
- name: Build HTML
Collapse file

‎.github/workflows/ci.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
auto-update-conda: true
1212
auto-activate-base: true
1313
miniconda-version: 'latest'
14-
python-version: "3.12"
14+
python-version: "3.13"
1515
environment-file: environment.yml
1616
activate-environment: quantecon
1717
- name: Install latex dependencies
Collapse file

‎.github/workflows/execution-linux.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/execution-linux.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
os: ["ubuntu-latest"]
14-
python-version: ["3.12"]
14+
python-version: ["3.13"]
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
Collapse file

‎.github/workflows/execution-osx.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/execution-osx.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
os: ["macos-latest"]
14-
python-version: ["3.12"]
14+
python-version: ["3.13"]
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
Collapse file

‎.github/workflows/execution-win.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/execution-win.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
os: ["windows-latest"]
14-
python-version: ["3.12"]
14+
python-version: ["3.13"]
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
Collapse file

‎.github/workflows/publish.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/publish.yml
+1-1Lines 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 latex dependencies
Collapse file

‎.gitignore‎

Copy file name to clipboardExpand all lines: .gitignore
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ dask-worker-space
77
.ipynb_checkpoints/
88
.virtual_documents/
99

10+
lectures/sine_wave.py
1011
lectures/mathfoo.py
1112
lectures/mod.py
1213
lectures/test.py
Collapse file

‎environment.yml‎

Copy file name to clipboardExpand all lines: environment.yml
+6-7Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@ 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.8.2
11-
- sphinx-tojupyter==0.3.0
9+
- jupyter-book==1.0.4post1
10+
- quantecon-book-theme==0.8.3
11+
- sphinx-tojupyter==0.3.1
1212
- sphinxext-rediraffe==0.2.7
1313
- sphinx-exercise==1.0.1
14-
- ghp-import==2.1.0
15-
- sphinxcontrib-youtube==1.3.0 #Version 1.3.0 is required as quantecon-book-theme is only compatible with sphinx<=5
14+
- sphinxcontrib-youtube==1.4.1
1615
- sphinx-togglebutton==0.3.2
1716

1817

Collapse file

‎lectures/getting_started.md‎

Copy file name to clipboardExpand all lines: lectures/getting_started.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ You will spend a lot of time debugging code, so it is important to [learn how to
376376
If you are using a newer version of Jupyter, you should see a bug icon on the right end of the toolbar.
377377

378378
```{figure} /_static/lecture_specific/getting_started/debug.png
379-
:scale: 80%
379+
:scale: 50%
380380
:figclass: auto
381381
```
382382

Collapse file

‎lectures/matplotlib.md‎

Copy file name to clipboardExpand all lines: lectures/matplotlib.md
+7-6Lines changed: 7 additions & 6 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ If everything is properly configured, then adding LaTeX is trivial
122122

123123
```{code-cell} python3
124124
fig, ax = plt.subplots()
125-
ax.plot(x, y, 'r-', linewidth=2, label='$y=\sin(x)$', alpha=0.6)
125+
ax.plot(x, y, 'r-', linewidth=2, label=r'$y=\sin(x)$', alpha=0.6)
126126
ax.legend(loc='upper center')
127127
plt.show()
128128
```
@@ -131,7 +131,7 @@ Controlling the ticks, adding titles and so on is also straightforward
131131

132132
```{code-cell} python3
133133
fig, ax = plt.subplots()
134-
ax.plot(x, y, 'r-', linewidth=2, label='$y=\sin(x)$', alpha=0.6)
134+
ax.plot(x, y, 'r-', linewidth=2, label=r'$y=\sin(x)$', alpha=0.6)
135135
ax.legend(loc='upper center')
136136
ax.set_yticks([-1, 0, 1])
137137
ax.set_title('Test plot')
@@ -163,7 +163,7 @@ x = np.linspace(-4, 4, 150)
163163
for i in range(3):
164164
m, s = uniform(-1, 1), uniform(1, 2)
165165
y = norm.pdf(x, loc=m, scale=s)
166-
current_label = f'$\mu = {m:.2}$'
166+
current_label = rf'$\mu = {m:.2}$'
167167
ax.plot(x, y, linewidth=2, alpha=0.6, label=current_label)
168168
ax.legend()
169169
plt.show()
@@ -186,7 +186,7 @@ for i in range(num_rows):
186186
m, s = uniform(-1, 1), uniform(1, 2)
187187
x = norm.rvs(loc=m, scale=s, size=100)
188188
axes[i, j].hist(x, alpha=0.6, bins=20)
189-
t = f'$\mu = {m:.2}, \quad \sigma = {s:.2}$'
189+
t = rf'$\mu = {m:.2}, \quad \sigma = {s:.2}$'
190190
axes[i, j].set(title=t, xticks=[-4, 0, 4], yticks=[])
191191
plt.show()
192192
```
@@ -419,7 +419,7 @@ x = np.linspace(-4, 4, 150)
419419
for i in range(3):
420420
m, s = uniform(-1, 1), uniform(1, 2)
421421
y = norm.pdf(x, loc=m, scale=s)
422-
current_label = f'$\mu = {m:.2}$'
422+
current_label = rf'$\mu = {m:.2}$'
423423
ax.plot(x, y, linewidth=2, alpha=0.6, label=current_label)
424424
ax.legend()
425425
plt.show()
@@ -462,8 +462,9 @@ Place all the curves in the same figure.
462462

463463
The output should look like this
464464

465-
```{figure} /_static/lecture_specific/matplotlib/matplotlib_ex1.png
465+
```{image} /_static/lecture_specific/matplotlib/matplotlib_ex1.png
466466
:scale: 130
467+
:align: center
467468
```
468469

469470
```{exercise-end}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.