From d605460b949b4f935f1f8c4a394c23f039902bc5 Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 28 Nov 2022 14:25:55 +1100 Subject: [PATCH 1/3] ENH: Build GPU badge to identify lectures that use GPU hardware --- lectures/jax_intro.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/jax_intro.md b/lectures/jax_intro.md index 22dfb163..3c788618 100644 --- a/lectures/jax_intro.md +++ b/lectures/jax_intro.md @@ -11,7 +11,7 @@ kernelspec: name: python3 --- -# JAX +# JAX {bdg-link-primary-line}`GPU ` ```{note} From 96bc08f67f4563774d014bc4d393b4a6cc9647cc Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 28 Nov 2022 14:49:37 +1100 Subject: [PATCH 2/3] TMP: remove LaTeX builds --- .github/workflows/ci.yml | 64 ++++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d273f213..aa6c6f75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,26 +44,26 @@ jobs: run: | pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html nvidia-smi - - name: Install latex dependencies - shell: bash -l {0} - run: | - apt-get -qq update - export DEBIAN_FRONTEND=noninteractive - apt-get install -y tzdata - apt-get install -y \ - texlive-latex-recommended \ - texlive-latex-extra \ - texlive-fonts-recommended \ - texlive-fonts-extra \ - texlive-xetex \ - latexmk \ - xindy - - name: Display Conda Environment Versions - shell: bash -l {0} - run: conda list - - name: Display Pip Versions - shell: bash -l {0} - run: pip list + # - name: Install latex dependencies + # shell: bash -l {0} + # run: | + # apt-get -qq update + # export DEBIAN_FRONTEND=noninteractive + # apt-get install -y tzdata + # apt-get install -y \ + # texlive-latex-recommended \ + # texlive-latex-extra \ + # texlive-fonts-recommended \ + # texlive-fonts-extra \ + # texlive-xetex \ + # latexmk \ + # xindy + # - name: Display Conda Environment Versions + # shell: bash -l {0} + # run: conda list + # - name: Display Pip Versions + # shell: bash -l {0} + # run: pip list - name: Download "build" folder (cache) uses: dawidd6/action-download-artifact@v2 with: @@ -72,18 +72,18 @@ 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 --path-output ./ --builder=custom --custom-builder=jupyter -n -W --keep-going - mkdir -p _build/html/_notebooks - cp -u _build/jupyter/*.ipynb _build/html/_notebooks - - name: Build PDF from LaTeX - shell: bash -l {0} - run: | - jb build lectures --builder pdflatex --path-output ./ -n -W --keep-going - mkdir _build/html/_pdf - cp -u _build/latex/*.pdf _build/html/_pdf + # - name: Build Download Notebooks (sphinx-tojupyter) + # shell: bash -l {0} + # run: | + # jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter -n -W --keep-going + # mkdir -p _build/html/_notebooks + # cp -u _build/jupyter/*.ipynb _build/html/_notebooks + # - name: Build PDF from LaTeX + # shell: bash -l {0} + # run: | + # jb build lectures --builder pdflatex --path-output ./ -n -W --keep-going + # mkdir _build/html/_pdf + # cp -u _build/latex/*.pdf _build/html/_pdf # Final Build of HTML - name: Build HTML shell: bash -l {0} From 5734835d0982d18a1befda3f8fdab06c89810722 Mon Sep 17 00:00:00 2001 From: mmcky Date: Tue, 29 Nov 2022 11:54:16 +1100 Subject: [PATCH 3/3] enable sphinx-design --- environment.yml | 1 + lectures/_config.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index 354af554..7ff8d8f4 100644 --- a/environment.yml +++ b/environment.yml @@ -17,6 +17,7 @@ dependencies: - quantecon - array-to-latex - prettytable + - sphinx-design # Sandpit Requirements # - PuLP # - cvxpy diff --git a/lectures/_config.yml b/lectures/_config.yml index f3e0b3cd..5cd2ab49 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -16,7 +16,7 @@ latex: targetname: quantecon-python-programming.tex sphinx: - extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_tojupyter, sphinx_exercise, sphinx_togglebutton] + extra_extensions: [sphinx_multitoc_numbering, sphinxext.rediraffe, sphinx_tojupyter, sphinx_exercise, sphinx_togglebutton, sphinx_design] config: html_favicon: _static/lectures-favicon.ico html_theme: quantecon_book_theme