Skip to content

Commit

Permalink
[DH-327] make webpdf work for ischool
Browse files Browse the repository at this point in the history
  • Loading branch information
felder committed Jul 16, 2024
1 parent 63e0504 commit 9fd1fa3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions deployments/ischool/image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ RUN apt-get update > /dev/null && \
libatk-bridge2.0-0 \
libgtk-3-0 \
libnss3 \
libnspr4 \
libxss1 \
nodejs \
npm \
Expand All @@ -57,6 +58,10 @@ COPY infra-requirements.txt /tmp/infra-requirements.txt
RUN mamba env update -p ${CONDA_DIR} -f /tmp/environment.yml && \
mamba clean -afy

# DH-327, very similar to what was done for datahub in DH-164
ENV PLAYWRIGHT_BROWSERS_PATH ${CONDA_DIR}
RUN playwright install chromium

# Install IRKernel
RUN R --quiet -e "install.packages('IRkernel', quiet = TRUE)" && \
R --quiet -e "IRkernel::installspec(prefix='${CONDA_DIR}')"
Expand Down
3 changes: 2 additions & 1 deletion deployments/ischool/image/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ dependencies:
- pip:
- -r /tmp/infra-requirements.txt
- otter-grader==3.1.4
# DH-327
- nbconvert[webpdf]==7.16.4
# for notebook exporting
- nbconvert==7.6.0
- nb2pdf==0.6.2
- nbpdfexport==0.2.1

0 comments on commit 9fd1fa3

Please sign in to comment.