Skip to content

Update #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 172 commits into from
Mar 12, 2025
Merged
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
d6a9a03
[cagan_adaptive] Update the code suggestions
longye-tian Mar 14, 2024
0c2fae1
[cagan_adaptive]update title reference
longye-tian Mar 21, 2024
4abbaff
Address comments for inflation_history lecture
Jiarui-ZH Mar 21, 2024
79e1aa1
Apply suggestions from code review
Jiarui-ZH Mar 22, 2024
774faec
Apply suggestions from code review regarding iso3c usage
Jiarui-ZH Mar 22, 2024
46e870e
Promote lectures to the intro series and update related files (#405)
HumphreyYang Mar 23, 2024
a1ed6bc
FIX: aligned and general tidy up for new Monetary Lectures (#409)
mmcky Mar 23, 2024
b0a3a99
Delete .ipynb_checkpoints/README-checkpoint.md
Jiarui-ZH Mar 25, 2024
c1d24a8
Uncessesary line deleted from jupytext
Jiarui-ZH Mar 25, 2024
a66bde7
@jstac edits
mmcky Mar 25, 2024
d2b251b
Merge branch 'main' into update_cagan_adaptive_code
mmcky Mar 25, 2024
16f959e
[prob_dist] update according to editorial suggestions (#408)
longye-tian Mar 25, 2024
c33b392
Merge pull request #400 from QuantEcon/update_cagan_adaptive_code
jstac Mar 25, 2024
ba01860
Merge pull request #407 from Jiarui-ZH/update_inflation_history
jstac Mar 25, 2024
bce65a8
[inequality] Review of lecture and incorporate updates (#384)
mmcky Apr 3, 2024
585a66f
Address comments for `cagan_ree` lecture (#387)
HumphreyYang Apr 3, 2024
fa191ae
Use map instead of applymap (#330)
kp992 Apr 3, 2024
c54d169
[lln_clt] Update editorial suggestions
SylviaZhaooo Apr 8, 2024
ecaa6d8
Update lln_clt.md
SylviaZhaooo Apr 8, 2024
07cba0d
Merge pull request #415 from QuantEcon/update_lln_clt
jstac Apr 9, 2024
0b46db1
update_monte_carlo
longye-tian Apr 10, 2024
8c53ec8
Tom's April 11 edits of unpleasant arithmetic
thomassargent30 Apr 11, 2024
240e65f
Merge pull request #417 from QuantEcon/update_monte_carlo
jstac Apr 12, 2024
5c01d23
[heavy_tail] Update editorial suggestions
SylviaZhaooo Apr 18, 2024
a4ca83e
misc
jstac Apr 19, 2024
82204c7
Merge pull request #425 from QuantEcon/update_heavy_tail
jstac Apr 19, 2024
079d9c1
[markov_chains_II] MAINT: Update example4 graphviz figure (#423)
mmcky Apr 22, 2024
c879389
MAINT: Refactor graphviz figures to be lecture_specific figures.ipynb…
mmcky Apr 22, 2024
2cb3ac3
[solow] Update editorial suggestions
SylviaZhaooo Apr 22, 2024
8cb45a1
[solow] Update internal links
SylviaZhaooo Apr 22, 2024
6151bfa
[scalar_dynamic] Update editorial suggestions
longye-tian Apr 22, 2024
a454f5d
Delete %matplotlib inline in ALL lectures (#429)
longye-tian Apr 26, 2024
7a4bdc5
Update scalar_dynam.md
longye-tian Apr 26, 2024
a80c4a1
hide yf.download output
mmcky Apr 26, 2024
536a511
reformat display math, add mystnb figure tags
mmcky Apr 26, 2024
b135dd8
review of figure titles
mmcky Apr 26, 2024
418a891
[heavy_tails] Update references and titles of figures
SylviaZhaooo Apr 26, 2024
689cb06
[Solow] Update context
SylviaZhaooo Apr 27, 2024
a6e263f
Merge pull request #428 from QuantEcon/update_solow
jstac Apr 28, 2024
516c2af
misc
jstac Apr 28, 2024
3703575
Merge pull request #430 from QuantEcon/scalar_dynamic-suggestion
jstac Apr 28, 2024
b607dd1
adjust line colour
mmcky Apr 29, 2024
959e37d
reorganise code and add q-q plot
mmcky Apr 29, 2024
d6f5750
add wiki links and idea on less formal discussion on heavy-tails
mmcky Apr 29, 2024
15f9e14
square q-q plots
mmcky Apr 29, 2024
90bf2c2
qq-plot multiples of 3 and horizontal
mmcky Apr 29, 2024
f32785b
follow wikipedia style for capitalization, Normal -> normal in text
mmcky Apr 29, 2024
a44a5df
remove bolding as not formal
mmcky Apr 30, 2024
3c5585a
Merge pull request #431 from QuantEcon/heavy-tails
jstac Apr 30, 2024
42c5e2b
[cobweb] Update editorial suggestions
SylviaZhaooo May 3, 2024
735bf78
Update heavy_tails.md
SylviaZhaooo May 7, 2024
08dc983
Update cobweb.md
SylviaZhaooo May 7, 2024
d513790
update_olg.md
longye-tian May 8, 2024
742e6f6
Update olg.md
longye-tian May 8, 2024
90db84e
Merge pull request #432 from QuantEcon/update_heavy_tail
jstac May 8, 2024
ac1d5d3
Update money_inflation.md (#440)
longye-tian May 9, 2024
1d2633d
[inflation_history] FIX: compat with Google Colab (#439)
mmcky May 9, 2024
fc5cb52
ENH: Test Execution for Google Collab (#441)
kp992 May 21, 2024
83cd9ba
Fix a small typo in line 777 (#444)
dangarciahe May 21, 2024
f4ccaef
[unpleasant] Update editorial suggestions
SylviaZhaooo May 22, 2024
da3422e
Tom's May 29 addition of a new lecture ak2.md (#450)
mmcky May 29, 2024
feebd22
update_markov_chains_I.md
longye-tian Jun 5, 2024
266b1d5
Update markov_chains_I.md
longye-tian Jun 5, 2024
30cb1bb
Update markov_chains_I.md
jstac Jun 5, 2024
b3fe3c9
Update markov_chains_I.md
jstac Jun 5, 2024
b24e737
Merge pull request #454 from QuantEcon/update_markov_chain_I
jstac Jun 5, 2024
359caaa
misc
jstac Jun 6, 2024
92c2073
Merge pull request #455 from QuantEcon/edit_ineq
jstac Jun 6, 2024
8ce8b1d
Tom's mistaken edits in intro lectures
thomassargent30 Jun 9, 2024
8d0822f
Tom's edit of yaml file in intro lectures
thomassargent30 Jun 9, 2024
19d2ec4
Tom's addition of greek_square and edit of yml to intro repo
thomassargent30 Jun 10, 2024
69625e0
Tom's June 14 edits
thomassargent30 Jun 14, 2024
c6fa84d
Tom's edits of toc
thomassargent30 Jun 15, 2024
c7f20d2
Update markov_chains_II.md
longye-tian Jun 17, 2024
865a9e3
revise
longye-tian Jun 17, 2024
d2d1d66
revise
longye-tian Jun 17, 2024
441606f
[update_money_inflation_nonlinear] Editorial Suggestion (#448)
longye-tian Jun 17, 2024
8ff2c81
revise
longye-tian Jun 17, 2024
e6d9a1c
Update markov_chains_II.md
longye-tian Jun 17, 2024
58b525c
[markov_chain_II] Update figure to avoid overlaps and fix a typo in g…
HumphreyYang Jun 17, 2024
e2a9795
Update markov_chains_II.md
longye-tian Jun 17, 2024
7e05fae
Merge branch 'main' into markov_chain_II
longye-tian Jun 17, 2024
0a668c4
Update markov_chains_II.md
longye-tian Jun 17, 2024
a4936a6
Update markov_chains_II.md
longye-tian Jun 17, 2024
af6bf16
Merge pull request #438 from QuantEcon/update_olg
jstac Jun 17, 2024
298e812
add definition of accessible
longye-tian Jun 17, 2024
f4c78ca
Merge pull request #462 from QuantEcon/markov_chain_II
jstac Jun 17, 2024
6fbd7d1
[markov_chain_I] Hamilton's chain animation (#457)
longye-tian Jun 17, 2024
4642271
update expected price notation
HumphreyYang Jun 18, 2024
750010b
Merge branch 'main' into update_cobweb
HumphreyYang Jun 18, 2024
762d2f9
remove extra space and empty code cell
HumphreyYang Jun 18, 2024
8bd8fa6
remove migration admonition (#466)
longye-tian Jun 21, 2024
dff3acd
[short_path] Update editorial suggestions
SylviaZhaooo Jun 27, 2024
da69308
update links between lectures
HumphreyYang Jun 27, 2024
d230ddd
[short_path_graph] Update all graphs (#480)
SylviaZhaooo Jun 27, 2024
e8975ab
[lp_intro] update visualization code (#478)
longye-tian Jun 27, 2024
1c8ffe6
Create dependabot.yml (#484)
mmcky Jun 29, 2024
ffcc293
:arrow_up: Bump dawidd6/action-download-artifact from 2 to 6 (#486)
dependabot[bot] Jun 29, 2024
ac98b5d
:arrow_up: Bump conda-incubator/setup-miniconda from 2 to 3 (#487)
dependabot[bot] Jun 29, 2024
2d5ab9d
:arrow_up: Bump nwtgck/actions-netlify from 1.1 to 3.0 (#488)
dependabot[bot] Jun 29, 2024
bb463c9
:arrow_up: Bump actions/upload-artifact from 2 to 4 (#489)
dependabot[bot] Jun 29, 2024
53e0713
:arrow_up: Bump actions/checkout from 2 to 4 (#490)
dependabot[bot] Jun 29, 2024
414d880
Update unpleasant.md
SylviaZhaooo Jun 30, 2024
703b7b0
Update lectures/cobweb.md
SylviaZhaooo Jun 30, 2024
5337573
Merge pull request #477 from QuantEcon/update_short_path
jstac Jun 30, 2024
e47d444
Update unpleasant.md
SylviaZhaooo Jul 1, 2024
87b01e4
Update unpleasant.md
SylviaZhaooo Jul 1, 2024
04907d0
Merge pull request #447 from QuantEcon/update_unpleasant
jstac Jul 1, 2024
d9f5fb9
Merge pull request #435 from QuantEcon/update_cobweb
jstac Jul 1, 2024
12bcf1d
[money_inflation] updated steady state (#497)
longye-tian Jul 1, 2024
a291267
:arrow_up: Bump peaceiris/actions-gh-pages from 3 to 4 (#496)
dependabot[bot] Jul 2, 2024
39594d7
[lp_intro] update suggestions (#474)
longye-tian Jul 3, 2024
5ec6180
[time_series_with_matrices] Update editorial suggestions (#464)
SylviaZhaooo Jul 4, 2024
73f315b
[olg] update visulization code (#500)
longye-tian Jul 4, 2024
01d179e
[olg] update on Euler EQ and Log (#503)
longye-tian Jul 4, 2024
a2a1ffd
Update `greeksquare` lecture with new visualizations (#481)
HumphreyYang Jul 5, 2024
fa99488
[unpleasant] Address Comments on Styles and Improve Citation Style (#…
HumphreyYang Jul 5, 2024
2b7dd96
[inequality] Update exercise 3 (#498)
longye-tian Jul 5, 2024
fbe4c82
[AR1] Update editorial suggestions (#458)
SylviaZhaooo Jul 8, 2024
4c08c22
[markov_chain_I] latest edits (#510)
jstac Jul 8, 2024
45215d6
[commod_price] Update editorial suggestions (#443)
SylviaZhaooo Jul 8, 2024
a6c3da8
[cobweb] Update unfinished suggestions (#509)
SylviaZhaooo Jul 8, 2024
473e58e
Update French Revolution Lecture (#468)
HumphreyYang Jul 10, 2024
fac9a2f
[AR1] Update unfinished suggestions (#513)
SylviaZhaooo Jul 10, 2024
8b9175d
[markov_chain_I] Update animation for different initial distributions…
longye-tian Jul 18, 2024
edfca6e
[cagan_adaptive] update suggestions (#516)
longye-tian Jul 19, 2024
9f4238c
update cagan ree (#518)
longye-tian Jul 21, 2024
7fa9a60
add example of local stability (#523)
longye-tian Jul 22, 2024
e809a43
[prob_dist] Update suggestions (#519)
longye-tian Jul 23, 2024
d6194b1
spelling check (#527)
longye-tian Jul 23, 2024
0216cc1
[inflation_history] ENH: Implement review suggestions and comments (#…
mmcky Jul 23, 2024
716df5d
[scalar_dynam] add explanation to parameters and add explanation of k…
longye-tian Jul 23, 2024
3961964
[linear_equations]Update the example environment (#528)
longye-tian Jul 24, 2024
457fc52
spell check (#535)
longye-tian Jul 25, 2024
0c60b16
spell check and example admonition (#536)
longye-tian Jul 25, 2024
c814e4e
[lp_intro]Update lp (#531)
longye-tian Jul 26, 2024
f5f7161
[solow] Update unfinished suggestions (#511)
SylviaZhaooo Jul 26, 2024
a82fdf6
[lp_intro] add an admonition (#537)
shlff Jul 26, 2024
21a6894
Misc edits to prob lecture (#539)
jstac Aug 1, 2024
a58c4af
FIX: Update python code to simplify and resolve FutureWarning (#540)
mmcky Aug 1, 2024
1a46d9d
misc (#541)
jstac Aug 1, 2024
eecca09
FIX: pickups from live lecture (#542)
mmcky Aug 1, 2024
2ecd0ff
[ar1_processes] to [eigen_II] [heavy_tails][inequality]Example and sp…
longye-tian Aug 2, 2024
20a3b6c
[laffer_adaptive] [lake_model] spelling and check example admonition …
longye-tian Aug 7, 2024
0774777
[intro_supply_demand] Update spellings and example admonitions (#543)
longye-tian Aug 7, 2024
c25fe88
[markov_chains_II] to [money_inflation]spelling and example admontion…
longye-tian Aug 15, 2024
b7730c6
[french_revolution] [greek_square] [inflation_history] Tom's edits fo…
mmcky Aug 15, 2024
659a09a
RMV: removes ak2 lecture and redirects to the intermediate series (#549)
mmcky Aug 16, 2024
361f0b9
Tom's Aug 17 edits of money_inflation_nonlinear lecture
thomassargent30 Aug 17, 2024
cd80bfa
[time_series_with_matrices] Address feedbacks (#534)
HumphreyYang Aug 20, 2024
1e15713
ENH: remove binder and default to colab (#550)
mmcky Sep 25, 2024
905b7f9
[general] remark_admonition + upgrade sphinx-proof and quantecon-book…
longye-tian Sep 25, 2024
435bcc1
Update RA list (#551)
mmcky Oct 15, 2024
655a9fc
MAINT: upgrade python=3.12 and anaconda==2024.06-1 (#554)
mmcky Oct 15, 2024
1f23a64
[markov_markov_II] Fix `prf:theorem` in `markov_chains_II` (#556)
HumphreyYang Nov 3, 2024
e067599
FIX: jupyter cache (#557)
mmcky Nov 4, 2024
b66ee9a
MAINT: upgrade to anaconda=2024.10 (#558)
mmcky Nov 11, 2024
fa6615b
MAINT: switch runner name for quantecon-large (#559)
mmcky Nov 18, 2024
58ab934
:arrow_up: Bump dawidd6/action-download-artifact from 6 to 7 (#561)
dependabot[bot] Dec 3, 2024
6a8f932
ENH: update software stack (#562)
mmcky Dec 3, 2024
ea4253a
FIX: yf change to labels and using close price (#564)
mmcky Jan 16, 2025
6cc6c4b
[FIX] Fix string warnings (#566)
HumphreyYang Jan 21, 2025
e2eb153
Update markov_chains_II.md (#565)
katicyan Jan 21, 2025
508a1d7
Tom fixed a typoe in cons_smooth lecture, Jan 27
thomassargent30 Jan 27, 2025
b1196fa
Tom's edits of pv lecture typo
thomassargent30 Jan 27, 2025
d483579
:arrow_up: Bump dawidd6/action-download-artifact from 7 to 8 (#567)
dependabot[bot] Jan 28, 2025
90da8b0
FIX: intersphinx routes (#569)
mmcky Jan 31, 2025
90a9982
LECT: New Lecture on Tax Smoothing (#568)
mmcky Jan 31, 2025
8befe06
Tom's edits of tax smoothing lecture, Feb 3
thomassargent30 Feb 3, 2025
ce0314d
Tom's Feb 4 edits of pv.md lecture in intro series -- corrected answe…
thomassargent30 Feb 4, 2025
97d3131
Change to `np.NAN` --> `np.nan` (#570)
rowanc1 Feb 18, 2025
9e6bceb
:arrow_up: Bump dawidd6/action-download-artifact from 8 to 9 (#575)
dependabot[bot] Mar 8, 2025
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
@@ -0,0 +1,13 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: github-actions
directory: /
commit-message:
prefix: ⬆️
schedule:
interval: weekly
13 changes: 7 additions & 6 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
@@ -8,14 +8,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Anaconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: true
miniconda-version: 'latest'
python-version: "3.11"
python-version: "3.12"
environment-file: environment.yml
activate-environment: quantecon
- name: graphviz Support # TODO: required?
@@ -39,13 +39,14 @@ jobs:
run: |
jb build lectures --path-output ./ -W --keep-going
- name: Upload Execution Reports (HTML)
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: failure()
with:
name: execution-reports
path: _build/html/reports
- name: Upload "_build" folder (cache)
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: build-cache
path: _build
path: _build
include-hidden-files: true
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ jobs:
auto-update-conda: true
auto-activate-base: true
miniconda-version: 'latest'
python-version: "3.11"
python-version: "3.12"
environment-file: environment.yml
activate-environment: quantecon
- name: Graphics Support #TODO: Review if graphviz is needed
@@ -38,7 +38,7 @@ jobs:
shell: bash -l {0}
run: pip list
- name: Download "build" folder (cache)
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v9
with:
workflow: cache.yml
branch: main
@@ -51,6 +51,12 @@ jobs:
jb build lectures --builder pdflatex --path-output ./ -n --keep-going
mkdir -p _build/html/_pdf
cp -u _build/latex/*.pdf _build/html/_pdf
- name: Upload Execution Reports (LaTeX)
uses: actions/upload-artifact@v4
if: failure()
with:
name: execution-reports
path: _build/latex/reports
- name: Build Download Notebooks (sphinx-tojupyter)
shell: bash -l {0}
run: |
@@ -66,13 +72,13 @@ jobs:
rm -r _build/.doctrees
jb build lectures --path-output ./ -nW --keep-going
- name: Upload Execution Reports (HTML)
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: failure()
with:
name: execution-reports
path: _build/html/reports
- name: Preview Deploy to Netlify
uses: nwtgck/actions-netlify@v2
uses: nwtgck/actions-netlify@v3.0
with:
publish-dir: '_build/html/'
production-branch: main
54 changes: 54 additions & 0 deletions .github/workflows/collab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build Project on Google Collab (Execution)
on: [pull_request]

jobs:
test:
runs-on: quantecon-large
container:
image: us-docker.pkg.dev/colab-images/public/runtime:latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Check for dockerenv file
run: (ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv)
- name: Check python version
shell: bash -l {0}
run: |
python --version
- name: Display Pip Versions
shell: bash -l {0}
run: pip list
- name: Download "build" folder (cache)
uses: dawidd6/action-download-artifact@v9
with:
workflow: cache.yml
branch: main
name: build-cache
path: _build
# Install build software
- name: Install Build Software
shell: bash -l {0}
run: |
pip install jupyter-book==0.15.1 docutils==0.17.1 quantecon-book-theme==0.7.2 sphinx-tojupyter==0.3.0 sphinxext-rediraffe==0.2.7 sphinx-exercise==0.4.1 sphinxcontrib-youtube==1.1.0 sphinx-togglebutton==0.3.1 arviz==0.13.0 sphinx_proof==0.2.0 sphinx_reredirects==0.1.3
# Build of HTML (Execution Testing)
- name: Build HTML
shell: bash -l {0}
run: |
jb build lectures --path-output ./ -n -W --keep-going
- name: Upload Execution Reports
uses: actions/upload-artifact@v4
if: failure()
with:
name: execution-reports
path: _build/html/reports
- name: Preview Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: '_build/html/'
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Preview Deploy from GitHub Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
12 changes: 6 additions & 6 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
@@ -13,21 +13,21 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.11"]
python-version: ["3.12"]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Anaconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: true
miniconda-version: 'latest'
python-version: "3.11"
python-version: "3.12"
environment-file: environment.yml
activate-environment: quantecon
- name: Download "build" folder (cache)
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v9
with:
workflow: cache.yml
branch: main
@@ -37,7 +37,7 @@ jobs:
shell: bash -l {0}
run: jb build lectures --path-output=./ --builder=custom --custom-builder=linkcheck
- name: Upload Link Checker Reports
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: failure()
with:
name: linkcheck-reports
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -9,14 +9,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Anaconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: true
miniconda-version: 'latest'
python-version: "3.11"
python-version: "3.12"
environment-file: environment.yml
activate-environment: quantecon
- name: Install latex dependencies
@@ -39,7 +39,7 @@ jobs:
shell: bash -l {0}
run: pip list
- name: Download "build" folder (cache)
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v9
with:
workflow: cache.yml
branch: main
@@ -73,7 +73,7 @@ jobs:
rm -r _build/.doctrees
jb build lectures --path-output ./
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.1
uses: nwtgck/actions-netlify@v3.0
with:
publish-dir: '_build/html/'
production-branch: main
@@ -83,13 +83,13 @@ jobs:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
- name: Deploy website to gh-pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html/
cname: intro.quantecon.org
- name: Upload "_build" folder (cache)
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: build-publish
path: _build
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
lectures/_build
*/.ipynb_checkpoints/
.ipynb_checkpoints/
.virtual_documents/
_build/*
27 changes: 10 additions & 17 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -3,24 +3,17 @@ channels:
- default
- conda-forge
dependencies:
- python=3.11
- anaconda=2024.02
- python=3.12
- anaconda=2024.10
- pip
- pip:
- jupyter-book==0.15.1
- docutils==0.17.1
- quantecon-book-theme==0.7.1
- jupyter-book==1.0.3
- quantecon-book-theme==0.7.6
- sphinx-tojupyter==0.3.0
- sphinxext-rediraffe==0.2.7
- sphinx-exercise==0.4.1
- sphinx-proof==0.1.3
- ghp-import==1.1.0
- sphinxcontrib-youtube==1.1.0
- sphinx-togglebutton==0.3.1
# Sandpit Requirements
# - PuLP
# - cvxpy
# - cvxopt
# - cylp
# - array-to-latex
# - prettytable
- sphinx-exercise==1.0.1
- ghp-import==2.1.0
- sphinxcontrib-youtube==1.3.0 #Version 1.3.0 is required as quantecon-book-theme is only compatible with sphinx<=5
- sphinx-proof==0.2.0
- sphinx-togglebutton==0.3.2
- sphinx-reredirects==0.1.4 #Version 0.1.5 requires sphinx>=7.1
26 changes: 17 additions & 9 deletions lectures/_config.yml
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ latex:
targetname: quantecon-python-intro.tex

sphinx:
extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_exercise, sphinx_togglebutton, sphinx.ext.intersphinx, sphinx_proof, sphinx_tojupyter]
extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_exercise, sphinx_togglebutton, sphinx.ext.intersphinx, sphinx_proof, sphinx_tojupyter, sphinx_reredirects]
config:
bibtex_reference_style: author_year
# false-positive links
@@ -44,7 +44,11 @@ sphinx:
nb_render_image_options:
width: 80%
nb_code_prompt_show: "Show {type}"
suppress_warnings: [mystnb.unknown_mime_type, myst.domains]
proof_minimal_theme: true
# -------------
html_js_files:
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js
html_favicon: _static/lectures-favicon.ico
html_theme: quantecon_book_theme
html_static_path: ['_static']
@@ -67,34 +71,35 @@ sphinx:
analytics:
google_analytics_id: G-QDS1YRJNGM
launch_buttons:
notebook_interface : classic # The interface interactive links will activate ["classic", "jupyterlab"]
binderhub_url : https://mybinder.org # The URL of the BinderHub (e.g., https://mybinder.org)
colab_url : https://colab.research.google.com
thebe : false # Add a thebe button to pages (requires the repository to run on Binder)
intersphinx_mapping:
intermediate:
- https://python.quantecon.org/
- null
pyprog:
- https://python-programming.quantecon.org/
- null
intro:
- https://intro.quantecon.org/
- null
dle:
- https://quantecon.github.io/lecture-dle/
- https://dle.quantecon.org/
- null
dps:
- https://quantecon.github.io/lecture-dps/
- https://dps.quantecon.org/
- null
eqm:
- https://quantecon.github.io/lecture-eqm/
- https://eqm.quantecon.org/
- null
stats:
- https://quantecon.github.io/lecture-stats/
- https://stats.quantecon.org/
- null
tools:
- https://quantecon.github.io/lecture-tools-techniques/
- https://tools-techniques.quantecon.org/
- null
dynam:
- https://quantecon.github.io/lecture-dynamics/
- https://dynamics.quantecon.org/
- null
mathjax3_config:
tex:
@@ -104,6 +109,9 @@ sphinx:
mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
rediraffe_redirects:
index_toc.md: intro.md
# Remote Redirects
redirects:
ak2: https://python.quantecon.org/ak2.html
tojupyter_static_file_path: ["_static"]
tojupyter_target_html: true
tojupyter_urlpath: "https://intro.quantecon.org/"
Loading