From 10d0d9da0b31da48e3321dd9b2b522471ab95e7d Mon Sep 17 00:00:00 2001 From: AakashGC Date: Tue, 19 Oct 2021 10:05:13 +1100 Subject: [PATCH 01/34] changes necessary for pdf build --- lectures/applications/heterogeneity.md | 9 ++++----- lectures/applications/regression.md | 12 ++++++------ lectures/problem_sets/problem_set_3.md | 4 ++-- lectures/python_fundamentals/functions.md | 4 ++-- lectures/scientific/applied_linalg.md | 4 ++-- lectures/scientific/numpy_arrays.md | 4 ++-- 6 files changed, 18 insertions(+), 19 deletions(-) diff --git a/lectures/applications/heterogeneity.md b/lectures/applications/heterogeneity.md index 84bb4cfa..28e91f80 100644 --- a/lectures/applications/heterogeneity.md +++ b/lectures/applications/heterogeneity.md @@ -101,12 +101,12 @@ When treatment is randomly assigned, we can estimate average treatment effects because $$ -\begin{align*} +\begin{aligned} E[y_i(1) - y_i(0) ] = & E[y_i(1)] - E[y_i(0)] \\ & \text{random assignment } \\ = & E[y_i(1) | d_i = 1] - E[y_i(0) | d_i = 0] \\ = & E[y_i | d_i = 1] - E[y_i | d_i = 0 ] -\end{align*} +\end{aligned} $$ ### Average Treatment Effects @@ -164,12 +164,12 @@ logic that lets us estimate unconditional average treatment effects also suggests that we can estimate conditional average treatment effects. $$ -\begin{align*} +\begin{aligned} E[y_i(1) - y_i(0) |X_i=x] = & E[y_i(1)|X_i = x] - E[y_i(0)|X_i=x] \\ & \text{random assignment } \\ = & E[y_i(1) | d_i = 1, X_i=x] - E[y_i(0) | d_i = 0, X_i=x] \\ = & E[y_i | d_i = 1, X_i = x] - E[y_i | d_i = 0, X_i=x ] -\end{align*} +\end{aligned} $$ Conditional average treatment effects tell us whether there are @@ -209,7 +209,6 @@ $S(x)$ approximates $s_0(x)$ is to look at the best linear projection of $s_0(x)$ on $S(x)$. $$ -\DeclareMathOperator*{\argmin}{arg\,min} \beta_0, \beta_1 = \argmin_{b_0,b_1} E[(s_0(x) - b_0 - b_1 (S(x)-E[S(x)]))^2] $$ diff --git a/lectures/applications/regression.md b/lectures/applications/regression.md index 0545d969..e3d5f81e 100644 --- a/lectures/applications/regression.md +++ b/lectures/applications/regression.md @@ -123,7 +123,7 @@ only the livable square footage of the home. The linear regression model for this situation is $$ -\log(\text{price}) = \beta_0 + \beta_1 \text{sqft_living} + \epsilon +\log(\text{price}) = \beta_0 + \beta_1 \text{sqft\_living} + \epsilon $$ $\beta_0$ and $\beta_1$ are called parameters (also coefficients or @@ -132,14 +132,14 @@ that best fit the data. $\epsilon$ is the error term. It would be unusual for the observed $\log(\text{price})$ to be an exact linear function of -$\text{sqft_living}$. The error term captures the deviation of -$\log(\text{price})$ from a linear function of $\text{sqft_living}$. +$\text{sqft\_living}$. The error term captures the deviation of +$\log(\text{price})$ from a linear function of $\text{sqft\_living}$. The linear regression algorithm will choose the parameters that minimize the *mean squared error* (MSE) function, which for our example is written. $$ -\frac{1}{N} \sum_{i=1}^N \left(\log(\text{price}_i) - (\beta_0 + \beta_1 \text{sqft_living}_i) \right)^2 +\frac{1}{N} \sum_{i=1}^N \left(\log(\text{price}_i) - (\beta_0 + \beta_1 \text{sqft\_living}_i) \right)^2 $$ The output of this algorithm is the straight line (hence linear) that passes as @@ -218,7 +218,7 @@ Suppose that in addition to `sqft_living`, we also wanted to use the `bathrooms` In this case, the linear regression model is $$ -\log(\text{price}) = \beta_0 + \beta_1 \text{sqft_living} + +\log(\text{price}) = \beta_0 + \beta_1 \text{sqft\_living} + \beta_2 \text{bathrooms} + \epsilon $$ @@ -227,7 +227,7 @@ We could keep adding one variable at a time, along with a new $\beta_{j}$ coeffi Let's write this equation in vector/matrix form as $$ -\underbrace{\begin{bmatrix} \log(\text{price}_1) \\ \log(\text{price}_2) \\ \vdots \\ \log(\text{price}_N)\end{bmatrix}}_Y = \underbrace{\begin{bmatrix} 1 & \text{sqft_living}_1 & \text{bathrooms}_1 \\ 1 & \text{sqft_living}_2 & \text{bathrooms}_2 \\ \vdots & \vdots & \vdots \\ 1 & \text{sqft_living}_N & \text{bathrooms}_N \end{bmatrix}}_{X} \underbrace{\begin{bmatrix} \beta_0 \\ \beta_1 \\ \beta_2 \end{bmatrix}}_{\beta} + \epsilon +\underbrace{\begin{bmatrix} \log(\text{price}_1) \\ \log(\text{price}_2) \\ \vdots \\ \log(\text{price}_N)\end{bmatrix}}_Y = \underbrace{\begin{bmatrix} 1 & \text{sqft\_living}_1 & \text{bathrooms}_1 \\ 1 & \text{sqft\_living}_2 & \text{bathrooms}_2 \\ \vdots & \vdots & \vdots \\ 1 & \text{sqft\_living}_N & \text{bathrooms}_N \end{bmatrix}}_{X} \underbrace{\begin{bmatrix} \beta_0 \\ \beta_1 \\ \beta_2 \end{bmatrix}}_{\beta} + \epsilon $$ Notice that we can add as many columns to $X$ as we'd like and the linear diff --git a/lectures/problem_sets/problem_set_3.md b/lectures/problem_sets/problem_set_3.md index baa5fb79..dfcc6cb2 100644 --- a/lectures/problem_sets/problem_set_3.md +++ b/lectures/problem_sets/problem_set_3.md @@ -197,10 +197,10 @@ face value $M$, yield to maturity $i$, and periods to maturity $N$ is $$ -\begin{align*} +\begin{aligned} P &= \left(\sum_{n=1}^N \frac{C}{(i+1)^n}\right) + \frac{M}{(1+i)^N} \\ &= C \left(\frac{1 - (1+i)^{-N}}{i} \right) + M(1+i)^{-N} -\end{align*} +\end{aligned} $$ In the code cell below, we have defined variables for `i`, `M` and `C`. diff --git a/lectures/python_fundamentals/functions.md b/lectures/python_fundamentals/functions.md index c0c460c0..cdf28262 100644 --- a/lectures/python_fundamentals/functions.md +++ b/lectures/python_fundamentals/functions.md @@ -633,10 +633,10 @@ that can be interchanged. That is, the following are identical. $$ -\begin{eqnarray} +\begin{aligned} f(K, L) &= z\, K^{\alpha} L^{1-\alpha}\\ f(K_2, L_2) &= z\, K_2^{\alpha} L_2^{1-\alpha} -\end{eqnarray} +\end{aligned} $$ The same concept applies to Python functions, where the arguments are just diff --git a/lectures/scientific/applied_linalg.md b/lectures/scientific/applied_linalg.md index 44e1e2fa..45e7cecc 100644 --- a/lectures/scientific/applied_linalg.md +++ b/lectures/scientific/applied_linalg.md @@ -343,11 +343,11 @@ $\begin{bmatrix} 1 & 2 \\ 3 & 1 \end{bmatrix}$ then we can multiply both sides b to get $$ -\begin{align*} +\begin{aligned} \begin{bmatrix} 1 & 2 \\ 3 & 1 \end{bmatrix}^{-1}\begin{bmatrix} 1 & 2 \\ 3 & 1 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} &= \begin{bmatrix} 1 & 2 \\ 3 & 1 \end{bmatrix}^{-1}\begin{bmatrix} 3 \\ 4 \end{bmatrix} \\ I \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} &= \begin{bmatrix} 1 & 2 \\ 3 & 1 \end{bmatrix}^{-1} \begin{bmatrix} 3 \\ 4 \end{bmatrix} \\ \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} &= \begin{bmatrix} 1 & 2 \\ 3 & 1 \end{bmatrix}^{-1} \begin{bmatrix} 3 \\ 4 \end{bmatrix} -\end{align*} + \end{aligned} $$ Computing the inverse requires that a matrix be square and satisfy some other conditions diff --git a/lectures/scientific/numpy_arrays.md b/lectures/scientific/numpy_arrays.md index a01addc6..072e5878 100644 --- a/lectures/scientific/numpy_arrays.md +++ b/lectures/scientific/numpy_arrays.md @@ -521,10 +521,10 @@ face value $M$, yield to maturity $i$, and periods to maturity $N$ is $$ -\begin{align*} +\begin{aligned} P &= \left(\sum_{n=1}^N \frac{C}{(i+1)^n}\right) + \frac{M}{(1+i)^N} \\ &= C \left(\frac{1 - (1+i)^{-N}}{i} \right) + M(1+i)^{-N} -\end{align*} +\end{aligned} $$ In the code cell below, we have defined variables for `i`, `M` and `C`. From 3099b496a8627b52762216709ccb1f7a7808c846 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Tue, 19 Oct 2021 10:22:48 +1100 Subject: [PATCH 02/34] mathjax config --- lectures/_config.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/lectures/_config.yml b/lectures/_config.yml index 0fa6ae2a..700c3c35 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -32,20 +32,7 @@ sphinx: binderhub_url: https://mybinder.org google_analytics_id: UA-54984338-5 persistent_sidebar: true - mathjax_config: - TeX: - extensions: ["autobold.js"] - Macros: - "argmax" : "arg\\,max" - "argmin" : "arg\\,min" - "col" : "col" - tex2jax: - inlineMath: [ ['$','$'], ['\\(','\\)'] ] - processEscapes: true - SVG: - scale: 0.92, - useGlobalCache: true - mathjax_path: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML + mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-svg.js tojupyter_static_file_path: ["_static"] tojupyter_target_html: true tojupyter_urlpath: "https://datascience.quantecon.org/" From b09df2bebdb77183a2fa57dc66a066f84cc9a455 Mon Sep 17 00:00:00 2001 From: mmcky Date: Tue, 19 Oct 2021 10:50:38 +1100 Subject: [PATCH 03/34] Github Actions: Enable building of pdf and download notebooks in CI --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fcc6b992..ee633727 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,17 @@ jobs: python-version: 3.8 environment-file: environment.yml activate-environment: lecture-datascience + - name: Install latex dependencies + run: | + sudo apt-get -qq update + sudo 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 @@ -28,6 +39,20 @@ jobs: branch: main name: build-cache path: _build + # Build Assets (Download Notebooks and PDF via LaTeX) + - name: Build PDF from LaTeX + shell: bash -l {0} + run: | + jb build lectures --builder pdflatex --path-output ./ -n --keep-going + mkdir -p _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 + mkdir -p _build/html/_notebooks + cp -u _build/jupyter/*.ipynb _build/html/_notebooks + # Build HTML (Website) - name: Build HTML shell: bash -l {0} run: | From 1cf42fea1a455dc7ee9b16a61bf923cfd1e47df2 Mon Sep 17 00:00:00 2001 From: mmcky Date: Tue, 19 Oct 2021 12:38:51 +1100 Subject: [PATCH 04/34] add imagemagick for sphinx.ext.imgconverter --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee633727..68fc342b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,8 @@ jobs: texlive-fonts-extra \ texlive-xetex \ latexmk \ - xindy + xindy \ + imagemagick - name: Display Conda Environment Versions shell: bash -l {0} run: conda list From e3a12909fb281fa3bf51e03c7a9d2c73a25f5283 Mon Sep 17 00:00:00 2001 From: mmcky Date: Tue, 19 Oct 2021 15:25:26 +1100 Subject: [PATCH 05/34] add failure artifact upload --- .github/workflows/ci.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68fc342b..7981eccf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,6 +47,13 @@ jobs: jb build lectures --builder pdflatex --path-output ./ -n --keep-going mkdir -p _build/html/_pdf cp -u _build/latex/*.pdf _build/html/_pdf + - name: Upload Execution Reports + uses: actions/upload-artifact@v2 + if: failure() + with: + name: execution-reports + path: _build + # path: _build/html/reports - name: Build Download Notebooks (sphinx-tojupyter) shell: bash -l {0} run: | @@ -58,18 +65,6 @@ jobs: shell: bash -l {0} run: | jb build lectures --path-output ./ -W --keep-going - - name: Upload Execution Reports - uses: actions/upload-artifact@v2 - if: failure() - with: - name: execution-reports - path: _build/html/reports - - name: Build Download Notebooks (sphinx-tojupyter) - shell: bash -l {0} - run: | - jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter - mkdir -p _build/html/_notebooks - rsync -r _build/jupyter/ _build/html/_notebooks/ - name: Copy Data Assets for Deployment shell: bash -l {0} run: | From 3af0edc2c14f341f8eccff6f37cb261a478bbe5f Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 25 Oct 2021 13:35:36 +1100 Subject: [PATCH 06/34] TEMP: install myst-nb@master --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7981eccf..ffcf1853 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,9 @@ jobs: python-version: 3.8 environment-file: environment.yml activate-environment: lecture-datascience + - name: Install myst-nb + run: | + pip install git+https://github.com/executablebooks/MyST-NB@master - name: Install latex dependencies run: | sudo apt-get -qq update From c9443296bdb704513ae9447958623d47853a8d6c Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 25 Oct 2021 14:21:34 +1100 Subject: [PATCH 07/34] enforce sphinx-tojupyter==0.2.0 --- environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index 6b4673ec..5a16f18d 100644 --- a/environment.yml +++ b/environment.yml @@ -12,7 +12,7 @@ dependencies: - sphinx-exercise - joblib - interpolation - - sphinx-tojupyter + - sphinx-tojupyter==0.2.0 - fiona - geopandas - pyLDAvis >= 3.3.0 From a286759a24ee9f964d7ce4b25fbf09fcec7905a8 Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 25 Oct 2021 14:28:31 +1100 Subject: [PATCH 08/34] upgrade to jupyter-book=0.12 and sphinx>=4 --- environment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/environment.yml b/environment.yml index 5a16f18d..c1aba8cd 100644 --- a/environment.yml +++ b/environment.yml @@ -3,10 +3,10 @@ channels: - default dependencies: - python=3.8 - - anaconda=2020.11 + - anaconda=2021.05 - pip - pip: - - jupyter-book>=0.11.0,<0.12.0 + - jupyter-book>=0.12,<0.13.0 - sphinxext-rediraffe - sphinx-multitoc-numbering - sphinx-exercise From 51875b9f180ec930c5ec8ef736a813ffc32ffdf6 Mon Sep 17 00:00:00 2001 From: mmcky Date: Mon, 25 Oct 2021 15:55:48 +1100 Subject: [PATCH 09/34] change name of pdf --- lectures/_config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lectures/_config.yml b/lectures/_config.yml index 700c3c35..758a0e24 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -10,6 +10,10 @@ execute: html: baseurl: https://datascience.quantecon.org/ +latex: + latex_documents: + targetname: datascience-book.tex + sphinx: extra_extensions: [sphinx_multitoc_numbering, sphinx_exercise, sphinx_tojupyter] config: From c9e760635349068914c1b3a68c35bd2ed4c1d0ba Mon Sep 17 00:00:00 2001 From: AakashGC Date: Tue, 7 Dec 2021 09:48:57 +1100 Subject: [PATCH 10/34] adding text-macros and mathjaxv2 --- lectures/_config.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lectures/_config.yml b/lectures/_config.yml index 758a0e24..e0f53410 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -36,7 +36,20 @@ sphinx: binderhub_url: https://mybinder.org google_analytics_id: UA-54984338-5 persistent_sidebar: true - mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-svg.js + mathjax_config: + TeX: + extensions: ["autobold.js", "Tex/text-macros.js"] + Macros: + "argmax" : "arg\\,max" + "argmin" : "arg\\,min" + "col" : "col" + tex2jax: + inlineMath: [ ['$','$'], ['\\(','\\)'] ] + processEscapes: true + SVG: + scale: 0.92, + useGlobalCache: true + mathjax_path: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML tojupyter_static_file_path: ["_static"] tojupyter_target_html: true tojupyter_urlpath: "https://datascience.quantecon.org/" From f18da1a5bd16a387cc6199bc1de6409fd1622545 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Tue, 7 Dec 2021 11:29:52 +1100 Subject: [PATCH 11/34] text-macros not loading --- lectures/_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/_config.yml b/lectures/_config.yml index e0f53410..f21cabf0 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -38,7 +38,7 @@ sphinx: persistent_sidebar: true mathjax_config: TeX: - extensions: ["autobold.js", "Tex/text-macros.js"] + extensions: ["autobold.js", "text-macros.js"] Macros: "argmax" : "arg\\,max" "argmin" : "arg\\,min" From 90925f0a1c093064686e672d506bf73f8020444f Mon Sep 17 00:00:00 2001 From: AakashGC Date: Tue, 7 Dec 2021 12:43:23 +1100 Subject: [PATCH 12/34] changing to mathjax 2.7.9 --- lectures/_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/_config.yml b/lectures/_config.yml index f21cabf0..bc628f10 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -49,7 +49,7 @@ sphinx: SVG: scale: 0.92, useGlobalCache: true - mathjax_path: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML + mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?config=TeX-MML-AM_CHTML tojupyter_static_file_path: ["_static"] tojupyter_target_html: true tojupyter_urlpath: "https://datascience.quantecon.org/" From 3c52d1f323a74c64faf0272774059afa86898f8a Mon Sep 17 00:00:00 2001 From: AakashGC Date: Tue, 7 Dec 2021 14:50:57 +1100 Subject: [PATCH 13/34] adding cache and mathjax key --- .github/workflows/ci.yml | 5 +++++ lectures/_config.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ffcf1853..c7e0cfa4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,6 +68,11 @@ jobs: shell: bash -l {0} run: | jb build lectures --path-output ./ -W --keep-going + - name: Save Build as Artifact + uses: actions/upload-artifact@v1 + with: + name: _build + path: _build - name: Copy Data Assets for Deployment shell: bash -l {0} run: | diff --git a/lectures/_config.yml b/lectures/_config.yml index bc628f10..4ec25fba 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -36,7 +36,7 @@ sphinx: binderhub_url: https://mybinder.org google_analytics_id: UA-54984338-5 persistent_sidebar: true - mathjax_config: + mathjax2_config: TeX: extensions: ["autobold.js", "text-macros.js"] Macros: From 854da9cd039cb3fe5e9b8255a3369794d7331a82 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Tue, 7 Dec 2021 15:41:33 +1100 Subject: [PATCH 14/34] pinning version to 0.2.1 --- environment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.yml b/environment.yml index 06488b65..b1daadb1 100644 --- a/environment.yml +++ b/environment.yml @@ -9,7 +9,7 @@ dependencies: - jupyter-book>=0.12,<0.13.0 - sphinxext-rediraffe - sphinx-multitoc-numbering - - sphinx-exercise + - sphinx-exercise==0.2.1 - joblib - interpolation - sphinx-tojupyter==0.2.0 From a11426a297b5c9d4b54d318adfaee616033e8c3d Mon Sep 17 00:00:00 2001 From: AakashGC Date: Wed, 8 Dec 2021 13:15:29 +1100 Subject: [PATCH 15/34] pinning versions to fix to sphinx3 --- environment.yml | 5 +++-- lectures/_config.yml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/environment.yml b/environment.yml index b1daadb1..87692d06 100644 --- a/environment.yml +++ b/environment.yml @@ -6,13 +6,14 @@ dependencies: - anaconda=2021.05 - pip - pip: - - jupyter-book>=0.12,<0.13.0 + - sphinx==3.5.0 + - jupyter-book>=0.12.1,<0.13.0 - sphinxext-rediraffe - sphinx-multitoc-numbering - sphinx-exercise==0.2.1 - joblib - interpolation - - sphinx-tojupyter==0.2.0 + - sphinx-tojupyter==0.1.2 - fiona - geopandas - pyLDAvis >= 3.3.0 diff --git a/lectures/_config.yml b/lectures/_config.yml index 4ec25fba..b4dd9cc1 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -2,6 +2,7 @@ title: QuantEcon DataScience author: Chase Coleman, Spencer Lyon, and Jesse Perla logo: _static/datascience-logo.png description: This website presents a series of lectures on programming, data science, and economics. +only_build_toc_files: true execute: execute_notebooks: "force" @@ -36,7 +37,7 @@ sphinx: binderhub_url: https://mybinder.org google_analytics_id: UA-54984338-5 persistent_sidebar: true - mathjax2_config: + mathjax_config: TeX: extensions: ["autobold.js", "text-macros.js"] Macros: From 5b4f69a244017549a0cae885da82b66f59ae2c18 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Wed, 8 Dec 2021 13:17:01 +1100 Subject: [PATCH 16/34] build other files as well --- lectures/_config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/lectures/_config.yml b/lectures/_config.yml index b4dd9cc1..bc628f10 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -2,7 +2,6 @@ title: QuantEcon DataScience author: Chase Coleman, Spencer Lyon, and Jesse Perla logo: _static/datascience-logo.png description: This website presents a series of lectures on programming, data science, and economics. -only_build_toc_files: true execute: execute_notebooks: "force" From ea7eb991f924ab6ece9b49a1a6528e02a042def7 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Wed, 15 Dec 2021 11:45:19 +1100 Subject: [PATCH 17/34] pinning to sphinx v3 --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c7e0cfa4..60e2813b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,9 @@ jobs: - name: Install myst-nb run: | pip install git+https://github.com/executablebooks/MyST-NB@master + - name: Install sphinx + run: | + pip install sphinx==3.5.0 - name: Install latex dependencies run: | sudo apt-get -qq update From 95c34caf8c3e88103bd77d3851fb60bb6b5d2fc8 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Wed, 15 Dec 2021 15:17:55 +1100 Subject: [PATCH 18/34] removing cache to see fresh build --- .github/workflows/ci.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60e2813b..1dcee0b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,13 +39,6 @@ jobs: - name: Display Pip Versions shell: bash -l {0} run: pip list - - name: Download "build" folder (cache) - uses: dawidd6/action-download-artifact@v2 - 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} From 3700fe2dd4ec34941047e7ee57b0ce41caa55e61 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Thu, 16 Dec 2021 10:54:16 +1100 Subject: [PATCH 19/34] testing with plotly file only --- lectures/_config.yml | 1 + lectures/_toc.yml | 44 -------------------------------------------- 2 files changed, 1 insertion(+), 44 deletions(-) diff --git a/lectures/_config.yml b/lectures/_config.yml index bc628f10..b4dd9cc1 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -2,6 +2,7 @@ title: QuantEcon DataScience author: Chase Coleman, Spencer Lyon, and Jesse Perla logo: _static/datascience-logo.png description: This website presents a series of lectures on programming, data science, and economics. +only_build_toc_files: true execute: execute_notebooks: "force" diff --git a/lectures/_toc.yml b/lectures/_toc.yml index 653bb21a..04203be9 100644 --- a/lectures/_toc.yml +++ b/lectures/_toc.yml @@ -1,50 +1,6 @@ format: jb-book root: index parts: -- caption: Introduction - chapters: - - file: introduction/index - - file: introduction/overview - - file: introduction/getting_started - - file: introduction/cloud_setup - - file: introduction/local_install - - file: introduction/troubleshooting -- caption: Python Fundamentals - chapters: - - file: python_fundamentals/index - - file: python_fundamentals/basics - - file: python_fundamentals/collections - - file: python_fundamentals/control_flow - - file: python_fundamentals/functions -- caption: Scientific Computing - chapters: - - file: scientific/index - - file: scientific/numpy_arrays - - file: scientific/plotting - - file: scientific/applied_linalg - - file: scientific/randomness - - file: scientific/optimization -- caption: Pandas - chapters: - - file: pandas/index - - file: pandas/intro - - file: pandas/basics - - file: pandas/the_index - - file: pandas/storage_formats - - file: pandas/data_clean - - file: pandas/reshape - - file: pandas/merge - - file: pandas/groupby - - file: pandas/timeseries - - file: pandas/matplotlib - caption: Applications chapters: - - file: applications/index - - file: applications/visualization_rules - file: applications/regression - - file: applications/recidivism - - file: applications/maps - - file: applications/classification - - file: applications/working_with_text - - file: applications/ml_in_economics - - file: applications/heterogeneity From 2a1a92c569faa7db839a26cd08cf352603124d26 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Thu, 16 Dec 2021 11:05:50 +1100 Subject: [PATCH 20/34] without error --- .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 1dcee0b8..e3fc2293 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,7 +63,7 @@ jobs: - name: Build HTML shell: bash -l {0} run: | - jb build lectures --path-output ./ -W --keep-going + jb build lectures --path-output ./ --keep-going - name: Save Build as Artifact uses: actions/upload-artifact@v1 with: From 1023fca1696cea5bc945d086d09eaff07cf0f8a2 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Thu, 16 Dec 2021 11:39:29 +1100 Subject: [PATCH 21/34] checking with old ci --- .github/workflows/ci.yml | 49 ++++++++++------------------------------ 1 file changed, 12 insertions(+), 37 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e3fc2293..b5ed62aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,60 +15,35 @@ jobs: python-version: 3.8 environment-file: environment.yml activate-environment: lecture-datascience - - name: Install myst-nb - run: | - pip install git+https://github.com/executablebooks/MyST-NB@master - - name: Install sphinx - run: | - pip install sphinx==3.5.0 - - name: Install latex dependencies - run: | - sudo apt-get -qq update - sudo apt-get install -y \ - texlive-latex-recommended \ - texlive-latex-extra \ - texlive-fonts-recommended \ - texlive-fonts-extra \ - texlive-xetex \ - latexmk \ - xindy \ - imagemagick - name: Display Conda Environment Versions shell: bash -l {0} run: conda list - name: Display Pip Versions shell: bash -l {0} run: pip list - # Build Assets (Download Notebooks and PDF via LaTeX) - - name: Build PDF from LaTeX + - name: Download "build" folder (cache) + uses: dawidd6/action-download-artifact@v2 + with: + workflow: cache.yml + branch: main + name: build-cache + path: _build + - name: Build HTML shell: bash -l {0} run: | - jb build lectures --builder pdflatex --path-output ./ -n --keep-going - mkdir -p _build/html/_pdf - cp -u _build/latex/*.pdf _build/html/_pdf + jb build lectures --path-output ./ -W --keep-going - name: Upload Execution Reports uses: actions/upload-artifact@v2 if: failure() with: name: execution-reports - path: _build - # path: _build/html/reports + path: _build/html/reports - name: Build Download Notebooks (sphinx-tojupyter) shell: bash -l {0} run: | jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter mkdir -p _build/html/_notebooks - cp -u _build/jupyter/*.ipynb _build/html/_notebooks - # Build HTML (Website) - - name: Build HTML - shell: bash -l {0} - run: | - jb build lectures --path-output ./ --keep-going - - name: Save Build as Artifact - uses: actions/upload-artifact@v1 - with: - name: _build - path: _build + rsync -r _build/jupyter/ _build/html/_notebooks/ - name: Copy Data Assets for Deployment shell: bash -l {0} run: | @@ -83,4 +58,4 @@ jobs: deploy-message: "Preview Deploy from GitHub Actions" env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} \ No newline at end of file From 2e7b3120aefc6475862e73271dc9ab74ccb743f4 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Thu, 16 Dec 2021 11:45:20 +1100 Subject: [PATCH 22/34] error off --- .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 b5ed62aa..9d557fba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: - name: Build HTML shell: bash -l {0} run: | - jb build lectures --path-output ./ -W --keep-going + jb build lectures --path-output ./ --keep-going - name: Upload Execution Reports uses: actions/upload-artifact@v2 if: failure() From e59096ec3f7adff923cd7524d203b6a1fa0178b0 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Thu, 16 Dec 2021 11:57:19 +1100 Subject: [PATCH 23/34] putting myst-nb latest install in ci --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d557fba..32a6fa94 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,12 @@ jobs: python-version: 3.8 environment-file: environment.yml activate-environment: lecture-datascience + - name: Install myst-nb + run: | + pip install git+https://github.com/executablebooks/MyST-NB@master + - name: Install sphinx + run: | + pip install sphinx==3.5.0 - name: Display Conda Environment Versions shell: bash -l {0} run: conda list From 06219e7ddd612db38b82276f303a57d03adbf4ef Mon Sep 17 00:00:00 2001 From: AakashGC Date: Thu, 16 Dec 2021 12:07:47 +1100 Subject: [PATCH 24/34] adding latex dependencies --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32a6fa94..0b4ff814 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,18 @@ jobs: - name: Install sphinx run: | pip install sphinx==3.5.0 + - name: Install latex dependencies + run: | + sudo apt-get -qq update + sudo apt-get install -y \ + texlive-latex-recommended \ + texlive-latex-extra \ + texlive-fonts-recommended \ + texlive-fonts-extra \ + texlive-xetex \ + latexmk \ + xindy \ + imagemagick - name: Display Conda Environment Versions shell: bash -l {0} run: conda list From fa94e4783651e523fb58658a1a64f4c10ffa3fd8 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Thu, 16 Dec 2021 12:22:00 +1100 Subject: [PATCH 25/34] added latex build --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b4ff814..70049607 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,6 +39,13 @@ jobs: - name: Display Pip Versions shell: bash -l {0} run: pip list + # Build Assets (Download Notebooks and PDF via LaTeX) + - name: Build PDF from LaTeX + shell: bash -l {0} + run: | + jb build lectures --builder pdflatex --path-output ./ -n --keep-going + mkdir -p _build/html/_pdf + cp -u _build/latex/*.pdf _build/html/_pdf - name: Download "build" folder (cache) uses: dawidd6/action-download-artifact@v2 with: From 138d170f7c3e78a2e451acf7ebad23ca528980f7 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Thu, 16 Dec 2021 12:53:59 +1100 Subject: [PATCH 26/34] downloading, uploading artifacts --- .github/workflows/ci.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70049607..dc29f53b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,13 +39,6 @@ jobs: - name: Display Pip Versions shell: bash -l {0} run: pip list - # Build Assets (Download Notebooks and PDF via LaTeX) - - name: Build PDF from LaTeX - shell: bash -l {0} - run: | - jb build lectures --builder pdflatex --path-output ./ -n --keep-going - mkdir -p _build/html/_pdf - cp -u _build/latex/*.pdf _build/html/_pdf - name: Download "build" folder (cache) uses: dawidd6/action-download-artifact@v2 with: @@ -53,6 +46,13 @@ jobs: branch: main name: build-cache path: _build + # Build Assets (Download Notebooks and PDF via LaTeX) + - name: Build PDF from LaTeX + shell: bash -l {0} + run: | + jb build lectures --builder pdflatex --path-output ./ -n --keep-going + mkdir -p _build/html/_pdf + cp -u _build/latex/*.pdf _build/html/_pdf - name: Build HTML shell: bash -l {0} run: | @@ -62,13 +62,18 @@ jobs: if: failure() with: name: execution-reports - path: _build/html/reports + path: _build - name: Build Download Notebooks (sphinx-tojupyter) shell: bash -l {0} run: | jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter mkdir -p _build/html/_notebooks rsync -r _build/jupyter/ _build/html/_notebooks/ + - name: Save Build as Artifact + uses: actions/upload-artifact@v1 + with: + name: _build + path: _build - name: Copy Data Assets for Deployment shell: bash -l {0} run: | From 0c702ddead183ee24a3ac490dfa38837c0b61d47 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Thu, 16 Dec 2021 16:20:18 +1100 Subject: [PATCH 27/34] build folder from cache --- .github/workflows/ci.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc29f53b..37fb3785 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,13 +39,6 @@ jobs: - name: Display Pip Versions shell: bash -l {0} run: pip list - - name: Download "build" folder (cache) - uses: dawidd6/action-download-artifact@v2 - 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} From 1f4f0c8134be12ce7c3e655b3c97a1a5fffaf16a Mon Sep 17 00:00:00 2001 From: AakashGC Date: Thu, 16 Dec 2021 16:33:16 +1100 Subject: [PATCH 28/34] upload artifacts --- .github/workflows/ci.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37fb3785..22a7cb52 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,11 +62,6 @@ jobs: jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter mkdir -p _build/html/_notebooks rsync -r _build/jupyter/ _build/html/_notebooks/ - - name: Save Build as Artifact - uses: actions/upload-artifact@v1 - with: - name: _build - path: _build - name: Copy Data Assets for Deployment shell: bash -l {0} run: | From e35a921640928d64b39c51029ff066b81d1d9765 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Thu, 16 Dec 2021 16:42:00 +1100 Subject: [PATCH 29/34] reports path --- .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 22a7cb52..2ed34089 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: if: failure() with: name: execution-reports - path: _build + path: _build/html/reports - name: Build Download Notebooks (sphinx-tojupyter) shell: bash -l {0} run: | From aa37ac01579e1d2d78f220be667bcd2443f15d8a Mon Sep 17 00:00:00 2001 From: AakashGC Date: Thu, 16 Dec 2021 23:23:46 +1100 Subject: [PATCH 30/34] adding cache build folder --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ed34089..70049607 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,13 @@ jobs: jb build lectures --builder pdflatex --path-output ./ -n --keep-going mkdir -p _build/html/_pdf cp -u _build/latex/*.pdf _build/html/_pdf + - name: Download "build" folder (cache) + uses: dawidd6/action-download-artifact@v2 + with: + workflow: cache.yml + branch: main + name: build-cache + path: _build - name: Build HTML shell: bash -l {0} run: | From 8571bb873a88f2ca3509a951d1cd19a8fd903c2d Mon Sep 17 00:00:00 2001 From: AakashGC Date: Thu, 16 Dec 2021 23:32:51 +1100 Subject: [PATCH 31/34] reverting changes to toc and config --- lectures/_config.yml | 1 - lectures/_toc.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/lectures/_config.yml b/lectures/_config.yml index b4dd9cc1..bc628f10 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -2,7 +2,6 @@ title: QuantEcon DataScience author: Chase Coleman, Spencer Lyon, and Jesse Perla logo: _static/datascience-logo.png description: This website presents a series of lectures on programming, data science, and economics. -only_build_toc_files: true execute: execute_notebooks: "force" diff --git a/lectures/_toc.yml b/lectures/_toc.yml index 04203be9..653bb21a 100644 --- a/lectures/_toc.yml +++ b/lectures/_toc.yml @@ -1,6 +1,50 @@ format: jb-book root: index parts: +- caption: Introduction + chapters: + - file: introduction/index + - file: introduction/overview + - file: introduction/getting_started + - file: introduction/cloud_setup + - file: introduction/local_install + - file: introduction/troubleshooting +- caption: Python Fundamentals + chapters: + - file: python_fundamentals/index + - file: python_fundamentals/basics + - file: python_fundamentals/collections + - file: python_fundamentals/control_flow + - file: python_fundamentals/functions +- caption: Scientific Computing + chapters: + - file: scientific/index + - file: scientific/numpy_arrays + - file: scientific/plotting + - file: scientific/applied_linalg + - file: scientific/randomness + - file: scientific/optimization +- caption: Pandas + chapters: + - file: pandas/index + - file: pandas/intro + - file: pandas/basics + - file: pandas/the_index + - file: pandas/storage_formats + - file: pandas/data_clean + - file: pandas/reshape + - file: pandas/merge + - file: pandas/groupby + - file: pandas/timeseries + - file: pandas/matplotlib - caption: Applications chapters: + - file: applications/index + - file: applications/visualization_rules - file: applications/regression + - file: applications/recidivism + - file: applications/maps + - file: applications/classification + - file: applications/working_with_text + - file: applications/ml_in_economics + - file: applications/heterogeneity From ea5026879d5eecf65a54e231eaa207d625f45663 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Fri, 17 Dec 2021 10:26:04 +1100 Subject: [PATCH 32/34] uploading build as artifact --- .github/workflows/ci.yml | 7 ++++++- lectures/_config.yml | 1 + lectures/_toc.yml | 44 ---------------------------------------- 3 files changed, 7 insertions(+), 45 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70049607..74707af6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,7 +56,7 @@ jobs: - name: Build HTML shell: bash -l {0} run: | - jb build lectures --path-output ./ --keep-going + jb build lectures --path-output ./ -W --keep-going - name: Upload Execution Reports uses: actions/upload-artifact@v2 if: failure() @@ -74,6 +74,11 @@ jobs: run: | mkdir -p _build/html/assets/data cp -a lectures/_data/. _build/html/assets/data/ + - name: Save Build as Artifact + uses: actions/upload-artifact@v1 + with: + name: _build + path: _build - name: Preview Deploy to Netlify uses: nwtgck/actions-netlify@v1.1 with: diff --git a/lectures/_config.yml b/lectures/_config.yml index bc628f10..b4dd9cc1 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -2,6 +2,7 @@ title: QuantEcon DataScience author: Chase Coleman, Spencer Lyon, and Jesse Perla logo: _static/datascience-logo.png description: This website presents a series of lectures on programming, data science, and economics. +only_build_toc_files: true execute: execute_notebooks: "force" diff --git a/lectures/_toc.yml b/lectures/_toc.yml index 653bb21a..04203be9 100644 --- a/lectures/_toc.yml +++ b/lectures/_toc.yml @@ -1,50 +1,6 @@ format: jb-book root: index parts: -- caption: Introduction - chapters: - - file: introduction/index - - file: introduction/overview - - file: introduction/getting_started - - file: introduction/cloud_setup - - file: introduction/local_install - - file: introduction/troubleshooting -- caption: Python Fundamentals - chapters: - - file: python_fundamentals/index - - file: python_fundamentals/basics - - file: python_fundamentals/collections - - file: python_fundamentals/control_flow - - file: python_fundamentals/functions -- caption: Scientific Computing - chapters: - - file: scientific/index - - file: scientific/numpy_arrays - - file: scientific/plotting - - file: scientific/applied_linalg - - file: scientific/randomness - - file: scientific/optimization -- caption: Pandas - chapters: - - file: pandas/index - - file: pandas/intro - - file: pandas/basics - - file: pandas/the_index - - file: pandas/storage_formats - - file: pandas/data_clean - - file: pandas/reshape - - file: pandas/merge - - file: pandas/groupby - - file: pandas/timeseries - - file: pandas/matplotlib - caption: Applications chapters: - - file: applications/index - - file: applications/visualization_rules - file: applications/regression - - file: applications/recidivism - - file: applications/maps - - file: applications/classification - - file: applications/working_with_text - - file: applications/ml_in_economics - - file: applications/heterogeneity From 4c1c2cde5baa42692462e4eea20df96820666380 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Fri, 17 Dec 2021 10:34:51 +1100 Subject: [PATCH 33/34] -W --- .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 74707af6..83c6f0ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,7 +56,7 @@ jobs: - name: Build HTML shell: bash -l {0} run: | - jb build lectures --path-output ./ -W --keep-going + jb build lectures --path-output ./ --keep-going - name: Upload Execution Reports uses: actions/upload-artifact@v2 if: failure() From 78167d503141d7e19aa0bfd1ba4c297a525a59b1 Mon Sep 17 00:00:00 2001 From: AakashGC Date: Fri, 17 Dec 2021 10:54:07 +1100 Subject: [PATCH 34/34] trying out the whole build --- .github/workflows/ci.yml | 2 +- lectures/_config.yml | 1 - lectures/_toc.yml | 44 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83c6f0ae..74707af6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,7 +56,7 @@ jobs: - name: Build HTML shell: bash -l {0} run: | - jb build lectures --path-output ./ --keep-going + jb build lectures --path-output ./ -W --keep-going - name: Upload Execution Reports uses: actions/upload-artifact@v2 if: failure() diff --git a/lectures/_config.yml b/lectures/_config.yml index b4dd9cc1..bc628f10 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -2,7 +2,6 @@ title: QuantEcon DataScience author: Chase Coleman, Spencer Lyon, and Jesse Perla logo: _static/datascience-logo.png description: This website presents a series of lectures on programming, data science, and economics. -only_build_toc_files: true execute: execute_notebooks: "force" diff --git a/lectures/_toc.yml b/lectures/_toc.yml index 04203be9..653bb21a 100644 --- a/lectures/_toc.yml +++ b/lectures/_toc.yml @@ -1,6 +1,50 @@ format: jb-book root: index parts: +- caption: Introduction + chapters: + - file: introduction/index + - file: introduction/overview + - file: introduction/getting_started + - file: introduction/cloud_setup + - file: introduction/local_install + - file: introduction/troubleshooting +- caption: Python Fundamentals + chapters: + - file: python_fundamentals/index + - file: python_fundamentals/basics + - file: python_fundamentals/collections + - file: python_fundamentals/control_flow + - file: python_fundamentals/functions +- caption: Scientific Computing + chapters: + - file: scientific/index + - file: scientific/numpy_arrays + - file: scientific/plotting + - file: scientific/applied_linalg + - file: scientific/randomness + - file: scientific/optimization +- caption: Pandas + chapters: + - file: pandas/index + - file: pandas/intro + - file: pandas/basics + - file: pandas/the_index + - file: pandas/storage_formats + - file: pandas/data_clean + - file: pandas/reshape + - file: pandas/merge + - file: pandas/groupby + - file: pandas/timeseries + - file: pandas/matplotlib - caption: Applications chapters: + - file: applications/index + - file: applications/visualization_rules - file: applications/regression + - file: applications/recidivism + - file: applications/maps + - file: applications/classification + - file: applications/working_with_text + - file: applications/ml_in_economics + - file: applications/heterogeneity