Skip to content

Commit

Permalink
ENH: update to latest anaconda=2024.10 and python=3.12 (#110)
Browse files Browse the repository at this point in the history
* ENH: update to latest anaconda=2024.10 and python=3.12

* update README

* tst: remove build cache for full execution run
  • Loading branch information
mmcky authored Nov 13, 2024
1 parent 7a9d976 commit 3d3e866
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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: graphviz Support # TODO: required?
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -37,13 +37,13 @@ jobs:
- name: Display Pip Versions
shell: bash -l {0}
run: pip list
- name: Download "build" folder (cache)
uses: dawidd6/action-download-artifact@v6
with:
workflow: cache.yml
branch: main
name: build-cache
path: _build
# - name: Download "build" folder (cache)
# uses: dawidd6/action-download-artifact@v6
# with:
# workflow: cache.yml
# branch: main
# name: build-cache
# path: _build
# # Build Assets (Download Notebooks and PDF via LaTeX)
# - name: Build PDF from LaTeX
# shell: bash -l {0}
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.11"]
python-version: ["3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -23,7 +23,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: 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.11"
python-version: "3.12"
environment-file: environment.yml
activate-environment: quantecon
- name: Install latex dependencies
Expand Down
25 changes: 22 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,28 @@

An Undergraduate Lecture Series for the Foundations of Computational Economics (Chinese Language)

## Description
## Installing the quantecon environment

When working on the lectures it is useful to install the quantecon environment for executing and building
the lectures locally.

This can be done using conda by:

```bash
conda env create -f environment.yml
```

or within China it is best to use the `environment-cn.yml`

```bash
conda env create -f environment-cn.yml
```

---

## Translation Project Plan

### Description

This repo is a testing ground for the development of a high-quality Chinese language version of the
introductory lecture site.
Expand All @@ -12,8 +33,6 @@ with the eventual goal of automating as much of the conversion process as possib
changes to see if we can (a) improve the initial AI conversion, and (b) think about the future editing experience for improvements
to future workflows (ie. how to keep the english and chinese versions in sync ENGLISH -> CHINESE; ENGLISH<->CHINESE)

## Plan

### Phase 1 (Short Term)

**Aim:** To deliver a high quality Chinese language version of the [intro lecture series](https://intro.quantecon.org/intro.html)
Expand Down
4 changes: 2 additions & 2 deletions environment-cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ channels:
- default
- conda-forge
dependencies:
- python=3.11
- anaconda=2024.06
- python=3.12
- anaconda=2024.10
- pip
- pip:
- jupyter-book==0.15.1
Expand Down
12 changes: 3 additions & 9 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ channels:
- default
- conda-forge
dependencies:
- python=3.11
- anaconda=2024.06
- python=3.12
- anaconda=2024.10
- pip
- pip:
- jupyter-book==0.15.1
Expand All @@ -18,10 +18,4 @@ dependencies:
- sphinxcontrib-youtube==1.1.0
- sphinx-togglebutton==0.3.1
- sphinx_reredirects==0.1.3
# Sandpit Requirements
# - PuLP
# - cvxpy
# - cvxopt
# - cylp
# - array-to-latex
# - prettytable

0 comments on commit 3d3e866

Please sign in to comment.