From 0adf748dffaa4988b7149cd38bdd8e071006c937 Mon Sep 17 00:00:00 2001 From: mmcky Date: Wed, 12 Mar 2025 20:17:56 +1100 Subject: [PATCH 1/7] MAINT: update docker environment --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c3a7bffd..6750c4166 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ jobs: preview: runs-on: quantecon-gpu container: - image: ghcr.io/quantecon/lecture-python-container:cuda-12.6.0-anaconda-2024-10-py312-b + image: ghcr.io/quantecon/lecture-python-container:cuda-12.8.0-anaconda-2024-10-py312 options: --gpus all steps: - uses: actions/checkout@v4 From 93f5e6707271b7ba8bafe7e842e2d81845e0f954 Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 13 Mar 2025 11:19:24 +1100 Subject: [PATCH 2/7] tmp: disable build cache --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6750c4166..6b9553784 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,12 +28,12 @@ jobs: name: build-cache path: _build # Build Assets (Download Notebooks and PDF via LaTeX) - - name: Build Download Notebooks (sphinx-tojupyter) - shell: bash -l {0} - run: | - jb build lectures -n -W --keep-going --path-output ./ --builder=custom --custom-builder=jupyter - mkdir -p _build/html/_notebooks - cp -u _build/jupyter/*.ipynb _build/html/_notebooks + # - name: Build Download Notebooks (sphinx-tojupyter) + # shell: bash -l {0} + # run: | + # jb build lectures -n -W --keep-going --path-output ./ --builder=custom --custom-builder=jupyter + # mkdir -p _build/html/_notebooks + # cp -u _build/jupyter/*.ipynb _build/html/_notebooks - name: Upload Execution Reports (Download Notebooks) uses: actions/upload-artifact@v4 if: failure() From 06e078a99e46f08718f633dc48eb7ba2aea96879 Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 13 Mar 2025 11:49:24 +1100 Subject: [PATCH 3/7] tmp: disable build cache --- .github/workflows/ci.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b9553784..aa13f20cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,20 +20,20 @@ jobs: - name: Display Pip Versions shell: bash -l {0} run: pip list - - name: Download "build" folder (cache) - uses: dawidd6/action-download-artifact@v8 - with: - workflow: cache.yml - branch: main - name: build-cache - path: _build + # - name: Download "build" folder (cache) + # uses: dawidd6/action-download-artifact@v8 + # with: + # workflow: cache.yml + # branch: main + # name: build-cache + # path: _build # Build Assets (Download Notebooks and PDF via LaTeX) - # - name: Build Download Notebooks (sphinx-tojupyter) - # shell: bash -l {0} - # run: | - # jb build lectures -n -W --keep-going --path-output ./ --builder=custom --custom-builder=jupyter - # mkdir -p _build/html/_notebooks - # cp -u _build/jupyter/*.ipynb _build/html/_notebooks + - name: Build Download Notebooks (sphinx-tojupyter) + shell: bash -l {0} + run: | + jb build lectures -n -W --keep-going --path-output ./ --builder=custom --custom-builder=jupyter + mkdir -p _build/html/_notebooks + cp -u _build/jupyter/*.ipynb _build/html/_notebooks - name: Upload Execution Reports (Download Notebooks) uses: actions/upload-artifact@v4 if: failure() From 2eaeac5c4307b84545d48454d2a19454410704a3 Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 13 Mar 2025 13:35:34 +1100 Subject: [PATCH 4/7] enable auto_adjust for yfinance --- lectures/kesten_processes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/kesten_processes.md b/lectures/kesten_processes.md index 3c185cccd..9f6b9bfee 100644 --- a/lectures/kesten_processes.md +++ b/lectures/kesten_processes.md @@ -108,7 +108,7 @@ Composite Index for the period 1st January 2006 to 1st November 2019. ```{code-cell} python3 import yfinance as yf -s = yf.download('^IXIC', '2006-1-1', '2019-11-1')['Adj Close'] +s = yf.download('^IXIC', '2006-1-1', '2019-11-1', auto_adjust=True)['Adj Close'] r = s.pct_change() From 58ae82843507a715501a00152e56c9f37082cb15 Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 13 Mar 2025 15:18:58 +1100 Subject: [PATCH 5/7] switch auto_adjust --- lectures/kesten_processes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/kesten_processes.md b/lectures/kesten_processes.md index 9f6b9bfee..95a6afd30 100644 --- a/lectures/kesten_processes.md +++ b/lectures/kesten_processes.md @@ -108,7 +108,7 @@ Composite Index for the period 1st January 2006 to 1st November 2019. ```{code-cell} python3 import yfinance as yf -s = yf.download('^IXIC', '2006-1-1', '2019-11-1', auto_adjust=True)['Adj Close'] +s = yf.download('^IXIC', '2006-1-1', '2019-11-1', auto_adjust=False)['Adj Close'] r = s.pct_change() From da5d60ef7cadc7782996fe7e547dc4c207af500c Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 31 Mar 2025 11:24:18 +1100 Subject: [PATCH 6/7] update ci workflow with latest docker --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa13f20cb..a2ccdc3e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ jobs: preview: runs-on: quantecon-gpu container: - image: ghcr.io/quantecon/lecture-python-container:cuda-12.8.0-anaconda-2024-10-py312 + image: ghcr.io/quantecon/lecture-python-container:cuda-12.8.1-anaconda-2024-10-py312 options: --gpus all steps: - uses: actions/checkout@v4 From 691a93de2cbcf5574b171120d047662169f4ad50 Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 31 Mar 2025 14:18:00 +1100 Subject: [PATCH 7/7] update to latest docker container for all workflows --- .github/workflows/cache.yml | 2 +- .github/workflows/ci.yml | 14 +++++++------- .github/workflows/publish.yml | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 37536ab05..bf2a14abe 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -7,7 +7,7 @@ jobs: cache: runs-on: quantecon-gpu container: - image: ghcr.io/quantecon/lecture-python-container:cuda-12.6.0-anaconda-2024-10-py312-b + image: ghcr.io/quantecon/lecture-python-container:cuda-12.8.1-anaconda-2024-10-py312 options: --gpus all steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2ccdc3e2..a7acdffc5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,13 +20,13 @@ jobs: - name: Display Pip Versions shell: bash -l {0} run: pip list - # - name: Download "build" folder (cache) - # uses: dawidd6/action-download-artifact@v8 - # with: - # workflow: cache.yml - # branch: main - # name: build-cache - # path: _build + - name: Download "build" folder (cache) + uses: dawidd6/action-download-artifact@v8 + with: + workflow: cache.yml + branch: main + name: build-cache + path: _build # Build Assets (Download Notebooks and PDF via LaTeX) - name: Build Download Notebooks (sphinx-tojupyter) shell: bash -l {0} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2bc105ce6..e1d115769 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,7 +8,7 @@ jobs: if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') runs-on: quantecon-gpu container: - image: ghcr.io/quantecon/lecture-python-container:cuda-12.6.0-anaconda-2024-10-py312-b + image: ghcr.io/quantecon/lecture-python-container:cuda-12.8.1-anaconda-2024-10-py312 options: --gpus all steps: - name: Checkout