diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 84637448..0b1bddc6 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -14,7 +14,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: Build HTML diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5cae5a98..052bb8bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,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-linux.yml b/.github/workflows/execution-linux.yml index b47224d0..8e466b86 100644 --- a/.github/workflows/execution-linux.yml +++ b/.github/workflows/execution-linux.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 diff --git a/.github/workflows/execution-osx.yml b/.github/workflows/execution-osx.yml index 0b24c800..452a66d3 100644 --- a/.github/workflows/execution-osx.yml +++ b/.github/workflows/execution-osx.yml @@ -11,7 +11,7 @@ jobs: fail-fast: false matrix: os: ["macos-latest"] - python-version: ["3.10"] + python-version: ["3.11"] steps: - name: Checkout uses: actions/checkout@v2 diff --git a/.github/workflows/execution-win.yml b/.github/workflows/execution-win.yml index 8b1091b4..7bf1701d 100644 --- a/.github/workflows/execution-win.yml +++ b/.github/workflows/execution-win.yml @@ -11,7 +11,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 bd098b73..518acf14 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@v3 @@ -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 83039621..065a5e3e 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 1f0ae88d..87ce49cf 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 36ef737e..3c7d25d3 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -21,7 +21,8 @@ sphinx: linkcheck_ignore: ['https://github.com/matplotlib/matplotlib/blob/v3.6.2/lib/matplotlib/axes/_axes.py#L1417-L1669', 'https://ieeexplore.ieee.org/document/8757088', 'https://www.sciencedirect.com/science/article/pii/S1477388021000177', - 'https://keras.io/'] + 'https://keras.io/', + 'https://data.oecd.org/'] html_favicon: _static/lectures-favicon.ico html_theme: quantecon_book_theme html_static_path: ['_static'] diff --git a/lectures/functions.md b/lectures/functions.md index 8fc9cc78..0e52043b 100644 --- a/lectures/functions.md +++ b/lectures/functions.md @@ -185,6 +185,7 @@ def f(x): Functions without a return statement automatically return the special Python object `None`. +(pos_args)= ### Keyword Arguments ```{index} single: Python; keyword arguments diff --git a/lectures/matplotlib.md b/lectures/matplotlib.md index eb9c31e2..b2708671 100644 --- a/lectures/matplotlib.md +++ b/lectures/matplotlib.md @@ -370,7 +370,7 @@ There are many parameters you could set for your style sheets. Set parameters for your style sheet by: -1. creating your own [`matplotlibrc` file](https://matplotlib.org/stable/tutorials/introductory/customizing.html#defining-your-own-style), or +1. creating your own [`matplotlibrc` file](https://matplotlib.org/stable/users/explain/customizing.html), or 2. updating values stored in the dictionary-like variable `plt.rcParams` Let's change the style of our overlaid density lines using the second method diff --git a/lectures/python_advanced_features.md b/lectures/python_advanced_features.md index 656550fc..0d6f8c4f 100644 --- a/lectures/python_advanced_features.md +++ b/lectures/python_advanced_features.md @@ -301,7 +301,7 @@ In this section, we will explore how to use them and distinguish their use cases When we operate on a list of parameters, we often need to extract the content of the list as individual arguments instead of a collection when passing them into functions. -Luckily, the `*` operator can help us to unpack lists and tuples into [*positional arguments*](https://63a3119f7a9a1a12f59e7803--epic-agnesi-957267.netlify.app/functions.html#keyword-arguments) in function calls. +Luckily, the `*` operator can help us to unpack lists and tuples into [*positional arguments*](pos_args) in function calls. To make things concrete, consider the following examples: