Skip to content

Commit

Permalink
MAINT: Upgrade software stack (#292)
Browse files Browse the repository at this point in the history
* MAINT: Upgrade to python=3.11 and anaconda==2023.09

* fix broken links

* fix the link to positional argument

* TMP: disable cache for fresh build

* Re-enable cache

---------

Co-authored-by: Humphrey Yang <[email protected]>
  • Loading branch information
mmcky and HumphreyYang authored Oct 11, 2023
1 parent f5d5df3 commit 2c15456
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/execution-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/execution-osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/execution-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion lectures/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
1 change: 1 addition & 0 deletions lectures/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lectures/matplotlib.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lectures/python_advanced_features.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 2c15456

Please sign in to comment.