diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 304fa8f81..90d12692c 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -33,6 +33,24 @@ jobs: - uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} + # Install LaTeX (Support for matplotlib) + - 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 \ + dvipng \ + ghostscript \ + cm-super - name: Setup Anaconda uses: conda-incubator/setup-miniconda@v2 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e9e074e9..255eade80 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,24 @@ jobs: - uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} + # Install LaTeX (Support for matplotlib and PDF builds) + - 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 \ + dvipng \ + ghostscript \ + cm-super - name: Setup Anaconda uses: conda-incubator/setup-miniconda@v2 with: @@ -43,7 +61,6 @@ jobs: shell: bash -l {0} run: | pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html - pip install --upgrade "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html nvidia-smi - name: Install latex dependencies shell: bash -l {0} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 51b249ad1..fb0ce41ec 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -32,7 +32,25 @@ jobs: options: --gpus all steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 + # Install LaTeX (Support for matplotlib and PDF builds) + - 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 \ + dvipng \ + ghostscript \ + cm-super - name: Setup Anaconda uses: conda-incubator/setup-miniconda@v2 with: @@ -47,20 +65,6 @@ jobs: run: | pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html nvidia-smi - - name: Install Supporting Packages - run: | - apt-get -qq update - export DEBIAN_FRONTEND=noninteractive - apt-get install -y tzdata - apt-get install -y git - 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 diff --git a/lectures/mix_model.md b/lectures/mix_model.md index 03cfde9af..7aeb06934 100644 --- a/lectures/mix_model.md +++ b/lectures/mix_model.md @@ -236,7 +236,7 @@ in conjunction with the `numpy.searchsorted` command to sample from $H$ directly See for the `searchsorted` function. -See the Mr. P Solver video on Monte Carlo simulation to see other applications of this powerful trick: +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. In the Python code below, we'll use both of our methods and confirm that each of them does a good job of sampling from our target mixture distribution.