From 80fb480b1b035d385aa510bfe56c20f7192589eb Mon Sep 17 00:00:00 2001 From: Jonathan Felder Date: Tue, 16 Jul 2024 15:38:36 -0700 Subject: [PATCH] [DH-330] make webpdf export work for julia --- deployments/julia/image/Dockerfile | 4 ++++ deployments/julia/image/apt.txt | 4 ++++ deployments/julia/image/environment.yml | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/deployments/julia/image/Dockerfile b/deployments/julia/image/Dockerfile index 27cf5ba06..9c0262d1e 100644 --- a/deployments/julia/image/Dockerfile +++ b/deployments/julia/image/Dockerfile @@ -66,6 +66,10 @@ RUN mamba env update -p ${CONDA_DIR} -f /tmp/environment.yml && mamba clean -af COPY infra-requirements.txt /tmp/infra-requirements.txt RUN pip install --no-cache -r /tmp/infra-requirements.txt +# DH-330, similar to DH-164 +ENV PLAYWRIGHT_BROWSERS_PATH ${CONDA_DIR} +RUN playwright install chromium + # 2024-01-13 sknapp: incompatible due to notebook 7 # RUN jupyter contrib nbextensions install --sys-prefix --symlink && \ # jupyter nbextensions_configurator enable --sys-prefix diff --git a/deployments/julia/image/apt.txt b/deployments/julia/image/apt.txt index 14c246c04..30ae36d48 100644 --- a/deployments/julia/image/apt.txt +++ b/deployments/julia/image/apt.txt @@ -9,3 +9,7 @@ lmodern # Other useful document-related tools pandoc latexdiff + +# playwright deps https://jira-secure.berkeley.edu/browse/DH-305 +libnss3 +libnspr4 diff --git a/deployments/julia/image/environment.yml b/deployments/julia/image/environment.yml index d2faefc2e..13ea0630e 100644 --- a/deployments/julia/image/environment.yml +++ b/deployments/julia/image/environment.yml @@ -23,6 +23,6 @@ dependencies: - jupyter-desktop-server - otter-grader==3.1.4 # for notebook exporting - - nbconvert==7.6.0 + - nbconvert[webpdf]==7.16.4 - nb2pdf==0.6.2 - nbpdfexport==0.2.1