Skip to content

ENH: enable linkchecker #174

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 21 commits into from
Jul 2, 2023
Merged
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
88 changes: 44 additions & 44 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
# name: Link Checker [Anaconda, Linux]
# on:
# pull_request:
# types: [opened, reopened]
# schedule:
# # UTC 12:00 is early morning in Australia
# - cron: '0 12 * * *'
# jobs:
# link-check-linux:
# name: Link Checking (${{ matrix.python-version }}, ${{ matrix.os }})
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: ["ubuntu-latest"]
# python-version: ["3.9"]
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Setup Anaconda
# uses: conda-incubator/setup-miniconda@v2
# with:
# auto-update-conda: true
# auto-activate-base: true
# miniconda-version: 'latest'
# python-version: 3.9
# environment-file: environment.yml
# activate-environment: quantecon
# - name: Download "build" folder (cache)
# uses: dawidd6/action-download-artifact@v2
# with:
# workflow: cache.yml
# branch: main
# name: build-cache
# path: _build
# - name: Link Checker
# 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
# if: failure()
# with:
# name: linkcheck-reports
# path: _build/linkcheck
name: Link Checker [Anaconda, Linux]
on:
pull_request:
types: [opened, reopened]
schedule:
# UTC 12:00 is early morning in Australia
- cron: '0 12 * * *'
jobs:
link-check-linux:
name: Link Checking (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Anaconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
auto-activate-base: true
miniconda-version: 'latest'
python-version: "3.10"
environment-file: environment.yml
activate-environment: quantecon
- name: Download "build" folder (cache)
uses: dawidd6/action-download-artifact@v2
with:
workflow: cache.yml
branch: main
name: build-cache
path: _build
- name: Link Checker
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
if: failure()
with:
name: linkcheck-reports
path: _build/linkcheck
2 changes: 2 additions & 0 deletions lectures/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ latex:
sphinx:
extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_exercise, sphinx_togglebutton, sphinx_proof, sphinx_tojupyter]
config:
# false-positive links
linkcheck_ignore: ['https://doi.org/https://doi.org/10.2307/1235116']
# myst-nb config
nb_render_image_options:
width: 80%
Expand Down
2 changes: 1 addition & 1 deletion lectures/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ In particular, we sincerely thank and give credit to

- [Aakash Gupta](https://github.com/AakashGfude)
- [Shu Hu](https://github.com/shlff)
- [Jiacheng Li](https://l10727@nyu.edu)
- Jiacheng Li
- [Smit Lunagariya](https://github.com/Smit-create)
- [Matthew McKay](https://github.com/mmcky)
- [Maanasee Sharma](https://github.com/maanasee)
Expand Down
2 changes: 1 addition & 1 deletion lectures/eigen_I.md
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,7 @@ The vector fields explain why we observed the trajectories of the vector $v$ mul

The pattern demonstrated here is because we have complex eigenvalues and eigenvectors.

We can plot the complex plane for one of the matrices using `Arrow3D` class retrieved from [stackoverflow](https://stackoverflow.com/questions/22867620/putting-arrowheads-on-vectors-in-matplotlibs-3d-plot).
We can plot the complex plane for one of the matrices using `Arrow3D` class retrieved from [stackoverflow](https://stackoverflow.com/questions/22867620/putting-arrowheads-on-vectors-in-a-3d-plot).

```{code-cell} ipython3
---
Expand Down
4 changes: 2 additions & 2 deletions lectures/markov_chains_I.md
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ always close to 0.25 (for the `P` matrix above).

### Using QuantEcon's routines

QuantEcon.py has routines for handling Markov chains, including simulation.
[QuantEcon.py](http://quantecon.org/quantecon-py) has routines for handling Markov chains, including simulation.

Here's an illustration using the same $P$ as the preceding example

Expand Down Expand Up @@ -749,7 +749,7 @@ Not surprisingly it tends to zero as $\beta \to 0$, and to one as $\alpha \to 0$

### Calculating stationary distributions

A stable algorithm for computing stationary distributions is implemented in QuantEcon.py.
A stable algorithm for computing stationary distributions is implemented in [QuantEcon.py](http://quantecon.org/quantecon-py).

Here's an example

Expand Down
2 changes: 1 addition & 1 deletion lectures/markov_chains_II.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ The diagram of the Markov chain shows that it is **irreducible**

In fact it has a periodic cycle --- the state cycles between the two states in a regular way.

This is called [periodicity](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/16%3A_Markov_Processes/16.05%3A_Periodicity_of_Discrete-Time_Chains#:~:text=A%20state%20in%20a%20discrete,limiting%20behavior%20of%20the%20chain.).
This is called [periodicity](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/16%3A_Markov_Processes/16.05%3A_Periodicity_of_Discrete-Time_Chains).

It is still irreducible so ergodicity holds.

Expand Down