From aa442577fee38d93acc85cede8ab99202804250f Mon Sep 17 00:00:00 2001 From: mmcky Date: Wed, 11 Oct 2023 14:38:47 +1100 Subject: [PATCH] MAINT: Update software stack (#146) * MAINT: Update software stack * TMP: disable build cache * update links and remove old site redirect * re-enable cache --------- Co-authored-by: Humphrey Yang --- .github/workflows/cache.yml | 2 +- .github/workflows/ci.yml | 2 +- .github/workflows/execution.yml | 6 +++--- .github/workflows/linkcheck.yml | 4 ++-- .github/workflows/publish.yml | 2 +- environment.yml | 6 +++--- lectures/_config.yml | 5 +++++ lectures/intro.md | 4 ---- lectures/lqramsey.md | 2 +- lectures/tax_smoothing_1.md | 2 +- 10 files changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 89639dc6..1a67a4ce 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -18,7 +18,7 @@ jobs: auto-update-conda: true auto-activate-base: true miniconda-version: 'latest' - python-version: "3.10" + python-version: "3.11" environment-file: environment.yml activate-environment: quantecon - name: Install latex dependencies diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d332e177..7934f3a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: auto-update-conda: true auto-activate-base: true miniconda-version: 'latest' - python-version: "3.10" + python-version: "3.11" environment-file: environment.yml activate-environment: quantecon - name: Install latex dependencies diff --git a/.github/workflows/execution.yml b/.github/workflows/execution.yml index 475c7b4b..35e3c926 100644 --- a/.github/workflows/execution.yml +++ b/.github/workflows/execution.yml @@ -11,7 +11,7 @@ jobs: fail-fast: false matrix: os: ["ubuntu-latest"] - python-version: ["3.10"] + python-version: ["3.11"] steps: - name: Checkout uses: actions/checkout@v2 @@ -53,7 +53,7 @@ jobs: fail-fast: false matrix: os: ["macos-latest"] - python-version: ["3.10"] + python-version: ["3.11"] steps: - name: Checkout uses: actions/checkout@v2 @@ -85,7 +85,7 @@ jobs: # fail-fast: false # matrix: # os: ["windows-latest"] - # python-version: ["3.10"] + # python-version: ["3.11"] # steps: # - name: Checkout # uses: actions/checkout@v2 diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index 6f435835..79f0578b 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -13,7 +13,7 @@ jobs: fail-fast: false matrix: os: ["ubuntu-latest"] - python-version: ["3.10"] + python-version: ["3.11"] steps: - name: Checkout uses: actions/checkout@v2 @@ -23,7 +23,7 @@ jobs: auto-update-conda: true auto-activate-base: true miniconda-version: 'latest' - python-version: "3.10" + python-version: "3.11" environment-file: environment.yml activate-environment: quantecon - name: Download "build" folder (cache) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 18461147..ae3266cc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: auto-update-conda: true auto-activate-base: true miniconda-version: 'latest' - python-version: "3.10" + python-version: "3.11" environment-file: environment.yml activate-environment: quantecon - name: Install latex dependencies diff --git a/environment.yml b/environment.yml index 7c3de7a8..068b5e48 100644 --- a/environment.yml +++ b/environment.yml @@ -2,13 +2,13 @@ name: quantecon channels: - default dependencies: - - python=3.10 - - anaconda=2023.07 + - python=3.11 + - anaconda=2023.09 - pip - pip: - jupyter-book==0.15.1 - docutils==0.17.1 - - quantecon-book-theme==0.5.3 + - quantecon-book-theme==0.6.0 - sphinx-tojupyter==0.3.0 - sphinxext-rediraffe==0.2.7 - sphinx-exercise==0.4.1 diff --git a/lectures/_config.yml b/lectures/_config.yml index 4f6e2df9..309e5e3a 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -33,6 +33,11 @@ latex: sphinx: extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_tojupyter, sphinx_exercise, sphinx_togglebutton] config: + linkcheck_ignore: ['https://doi.org/10.3982/ECTA8070', + 'https://doi.org/10.1086/261749', + 'https://doi.org/10.1086/262078', + 'https://keras.io/', + 'https://data.oecd.org/'] nb_mime_priority_overrides: [ # HTML ['html', 'application/vnd.jupyter.widget-view+json', 10], diff --git a/lectures/intro.md b/lectures/intro.md index 9e4debe7..13a1ae5c 100644 --- a/lectures/intro.md +++ b/lectures/intro.md @@ -17,8 +17,4 @@ This website presents a set of advanced lectures on quantitative economic modeli For an overview of the series, see [this page](https://quantecon.org/python-lectures/) ```{tableofcontents} -``` - -```{admonition} Previous website -While this new site will receive all future updates, you may still view the [old site here](http://rst-python-advanced.quantecon.org) for the next month. ``` \ No newline at end of file diff --git a/lectures/lqramsey.md b/lectures/lqramsey.md index 94becf3a..7f398310 100644 --- a/lectures/lqramsey.md +++ b/lectures/lqramsey.md @@ -415,7 +415,7 @@ In this case, the formula for computing $q(x_0)$ is known to be $q(x_0) = x_0' Q * $v = \text{trace} \, (C' Q C) \beta / (1 - \beta)$ The first equation is known as a discrete Lyapunov equation and can be solved -using [this function](https://github.com/QuantEcon/QuantEcon.py/blob/master/quantecon/matrix_eqn.py#L25). +using [this function](https://github.com/QuantEcon/QuantEcon.py/blob/master/quantecon/_matrix_eqn.py). ### Finite State Markov Case diff --git a/lectures/tax_smoothing_1.md b/lectures/tax_smoothing_1.md index 3a09cda9..e68c4f9f 100644 --- a/lectures/tax_smoothing_1.md +++ b/lectures/tax_smoothing_1.md @@ -406,7 +406,7 @@ model using the `LQMarkov` class that solves Markov jump linear quandratic control problems as described above. The code for the class can be viewed -[here](https://github.com/QuantEcon/QuantEcon.py/blob/master/quantecon/lqcontrol.py#L334). +[here](https://github.com/QuantEcon/QuantEcon.py/blob/master/quantecon/_lqcontrol.py). The class takes lists of matrices that corresponds to $N$ Markov states.