Skip to content

Commit 831ad01

Browse files
authored
MAINT: Revise LaTeX support for containers (#293)
* MAINT: Revise LaTeX support for containers * fix linkchecker issue
1 parent 8f4c9e5 commit 831ad01

File tree

4 files changed

+56
-17
lines changed

4 files changed

+56
-17
lines changed

.github/workflows/cache.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,24 @@ jobs:
3333
- uses: actions/checkout@v3
3434
with:
3535
ref: ${{ github.event.pull_request.head.sha }}
36+
# Install LaTeX (Support for matplotlib)
37+
- name: Install latex dependencies
38+
shell: bash -l {0}
39+
run: |
40+
apt-get -qq update
41+
export DEBIAN_FRONTEND=noninteractive
42+
apt-get install -y tzdata
43+
apt-get install -y \
44+
texlive-latex-recommended \
45+
texlive-latex-extra \
46+
texlive-fonts-recommended \
47+
texlive-fonts-extra \
48+
texlive-xetex \
49+
latexmk \
50+
xindy \
51+
dvipng \
52+
ghostscript \
53+
cm-super
3654
- name: Setup Anaconda
3755
uses: conda-incubator/setup-miniconda@v2
3856
with:

.github/workflows/ci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,24 @@ jobs:
3030
- uses: actions/checkout@v3
3131
with:
3232
ref: ${{ github.event.pull_request.head.sha }}
33+
# Install LaTeX (Support for matplotlib and PDF builds)
34+
- name: Install latex dependencies
35+
shell: bash -l {0}
36+
run: |
37+
apt-get -qq update
38+
export DEBIAN_FRONTEND=noninteractive
39+
apt-get install -y tzdata
40+
apt-get install -y \
41+
texlive-latex-recommended \
42+
texlive-latex-extra \
43+
texlive-fonts-recommended \
44+
texlive-fonts-extra \
45+
texlive-xetex \
46+
latexmk \
47+
xindy \
48+
dvipng \
49+
ghostscript \
50+
cm-super
3351
- name: Setup Anaconda
3452
uses: conda-incubator/setup-miniconda@v2
3553
with:
@@ -43,7 +61,6 @@ jobs:
4361
shell: bash -l {0}
4462
run: |
4563
pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
46-
pip install --upgrade "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
4764
nvidia-smi
4865
- name: Install latex dependencies
4966
shell: bash -l {0}

.github/workflows/publish.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,25 @@ jobs:
3232
options: --gpus all
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v2
35+
uses: actions/checkout@v3
36+
# Install LaTeX (Support for matplotlib and PDF builds)
37+
- name: Install latex dependencies
38+
shell: bash -l {0}
39+
run: |
40+
apt-get -qq update
41+
export DEBIAN_FRONTEND=noninteractive
42+
apt-get install -y tzdata
43+
apt-get install -y \
44+
texlive-latex-recommended \
45+
texlive-latex-extra \
46+
texlive-fonts-recommended \
47+
texlive-fonts-extra \
48+
texlive-xetex \
49+
latexmk \
50+
xindy \
51+
dvipng \
52+
ghostscript \
53+
cm-super
3654
- name: Setup Anaconda
3755
uses: conda-incubator/setup-miniconda@v2
3856
with:
@@ -47,20 +65,6 @@ jobs:
4765
run: |
4866
pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
4967
nvidia-smi
50-
- name: Install Supporting Packages
51-
run: |
52-
apt-get -qq update
53-
export DEBIAN_FRONTEND=noninteractive
54-
apt-get install -y tzdata
55-
apt-get install -y git
56-
apt-get install -y \
57-
texlive-latex-recommended \
58-
texlive-latex-extra \
59-
texlive-fonts-recommended \
60-
texlive-fonts-extra \
61-
texlive-xetex \
62-
latexmk \
63-
xindy
6468
- name: Display Conda Environment Versions
6569
shell: bash -l {0}
6670
run: conda list

lectures/mix_model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ in conjunction with the `numpy.searchsorted` command to sample from $H$ directly
236236
See <https://numpy.org/doc/stable/reference/generated/numpy.searchsorted.html> for the
237237
`searchsorted` function.
238238

239-
See the Mr. P Solver video on Monte Carlo simulation to see other applications of this powerful trick: <https://www.google.com/search?client=firefox-b-1-d&q=Mr+P+solver+Monte+Carlo#fpstate=ive&vld=cid:bdcddc9f,vid:U00Kseb6SB4>
239+
See the [Mr. P Solver video on Monte Carlo simulation](https://www.google.com/search?client=firefox-b-1-d&q=Mr+P+solver+Monte+Carlo#fpstate=ive&vld=cid:bdcddc9f,vid:U00Kseb6SB4) to see other applications of this powerful trick.
240240

241241
In the Python code below, we'll use both of our methods and confirm that each of them does a good job of sampling
242242
from our target mixture distribution.

0 commit comments

Comments
 (0)