Skip to content

Commit 09d7b2a

Browse files
authored
Merge branch 'main' into dependabot/conda/sphinx-togglebutton-0.4.4
2 parents f9dacfe + 731b0f9 commit 09d7b2a

32 files changed

+13419
-258
lines changed

.github/workflows/cache.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
jb build lectures --path-output ./ --keep-going
2424
# TODO: Re-enable -W flag once all lectures are translated and warnings are resolved
2525
- name: Upload Execution Reports
26-
uses: actions/upload-artifact@v6
26+
uses: actions/upload-artifact@v7
2727
if: failure()
2828
with:
2929
name: execution-reports
3030
path: _build/html/reports
3131
- name: Upload "_build" folder (cache)
32-
uses: actions/upload-artifact@v6
32+
uses: actions/upload-artifact@v7
3333
with:
3434
name: build-cache
3535
path: _build

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
shell: bash -l {0}
3737
run: pip list
3838
- name: Download "build" folder (cache)
39-
uses: dawidd6/action-download-artifact@v12
39+
uses: dawidd6/action-download-artifact@v16
4040
with:
4141
workflow: cache.yml
4242
branch: main
@@ -62,7 +62,7 @@ jobs:
6262
run: |
6363
jb build lectures --path-output ./ -n --keep-going
6464
- name: Upload Execution Reports
65-
uses: actions/upload-artifact@v6
65+
uses: actions/upload-artifact@v7
6666
if: failure()
6767
with:
6868
name: execution-reports

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: pip list
4343
# Download Build Cache from cache.yml
4444
- name: Download "build" folder (cache)
45-
uses: dawidd6/action-download-artifact@v12
45+
uses: dawidd6/action-download-artifact@v16
4646
with:
4747
workflow: cache.yml
4848
branch: main

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies:
77
- pip
88
- pip:
99
- jupyter-book>=1.0.4post1,<2.0
10-
- quantecon-book-theme==0.15.1
10+
- quantecon-book-theme==0.18.0
1111
- sphinx-tojupyter==0.6.0
1212
- sphinxext-rediraffe==0.3.0
1313
- sphinx-exercise==1.2.1

lectures/_admonition/gpu.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
```{admonition} GPU
2+
:class: warning
3+
4+
This lecture was built using a machine with access to a GPU --- although it will also run without one.
5+
6+
[Google Colab](https://colab.research.google.com/) has a free tier with GPUs
7+
that you can access as follows:
8+
9+
1. Click on the "play" icon top right
10+
2. Select Colab
11+
3. Set the runtime environment to include a GPU
12+
```
432 KB
Loading
1.6 MB
Loading

lectures/_toc.yml

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,38 @@ parts:
88
- file: getting_started
99
- file: python_by_example
1010
- file: functions
11-
# - file: python_essentials
12-
# - file: oop_intro
13-
# - file: names
14-
# - file: python_oop
15-
# - file: workspace
16-
# - caption: The Scientific Libraries
17-
# numbered: true
18-
# chapters:
19-
# - file: need_for_speed
20-
# - file: numpy
21-
# - file: matplotlib
22-
# - file: scipy
23-
# - file: pandas
24-
# - file: pandas_panel
25-
# - file: sympy
26-
# - caption: High Performance Computing
27-
# numbered: true
28-
# chapters:
29-
# - file: numba
30-
# - file: parallelization
31-
# - file: jax_intro
32-
# - caption: Advanced Python Programming
33-
# numbered: true
34-
# chapters:
35-
# - file: writing_good_code
36-
# - file: python_advanced_features
37-
# - file: debugging
11+
- file: python_essentials
12+
- file: oop_intro
13+
- file: names
14+
- file: python_oop
15+
- caption: Foundations of Scientific Computing
16+
numbered: true
17+
chapters:
18+
- file: need_for_speed
19+
- file: numpy
20+
- file: matplotlib
21+
- file: scipy
22+
- caption: High Performance Computing
23+
numbered: true
24+
chapters:
25+
- file: numba
26+
- file: jax_intro
27+
- file: numpy_vs_numba_vs_jax
28+
- caption: Working with Data
29+
numbered: true
30+
chapters:
31+
- file: pandas
32+
- file: pandas_panel
33+
- caption: More Python Programming
34+
numbered: true
35+
chapters:
36+
- file: writing_good_code
37+
- file: workspace
38+
- file: python_advanced_features
39+
- file: debugging
40+
- file: sympy
3841
- caption: Other
3942
numbered: true
4043
chapters:
41-
# - file: troubleshooting
44+
- file: troubleshooting
4245
- file: status

lectures/about_py.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ b @ c
263263

264264
درحالیکه هنوز سلطان پردازش آرایه ها در پایتون NumPy است، اما اکنون رقبای جدیدی نیز دارد؛ کتابخانه هایی مانند [CuPy](https://cupy.dev/)، [Pytorch](https://pytorch.org/)، [JAX](https://github.com/google/jax) نیز انواع آرایه ها و عملیات آرایه ای را تعبیه کرده اند و می توانند بسیار سریع و کارآمد باشند. همانطور که بعدا در این مجموعه توضیح خواهیم داد؛ در واقع این کتابخانه ها در استفاده از پردازش موازی و سخت افزار سریع، بهتر هستند. با این حال، شما هنوز هم باید ابتدا NumPy را یاد بگیرید، زیرا؛ ساده تر است و یک پایه ی قوی را فراهم می کند، به طور مستقیم عملکرد کتابخانه هایی مانند JAX را گسترش می دهد و از اینرو وقتی NumPy را می شناسید، یادگیری آن را نیز آسان تر می کند.
265265

266+
(tuple_unpacking_example)=
266267
### SciPy
267268

268269
کتابخانه [SciPy](http://www.scipy.org) بر روی NumPy ساخته شده است و قابلیت های اضافی را ارائه می دهد.

0 commit comments

Comments
 (0)