Skip to content

Commit

Permalink
Merge pull request #5868 from felder/felder_DH-329
Browse files Browse the repository at this point in the history
[DH-329] make webpdf export work for data102
  • Loading branch information
felder authored Jul 16, 2024
2 parents 4c7973d + 873598b commit 8f3ab3b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions deployments/data102/image/apt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,7 @@ meld

# For jupyter-tree-download. Ref: https://github.com/berkeley-dsep-infra/datahub/issues/3979
zip

# playwright deps https://jira-secure.berkeley.edu/browse/DH-305
libnss3
libnspr4
2 changes: 1 addition & 1 deletion deployments/data102/image/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dependencies:
# disable until fixed (probably this: https://github.com/jupyterlab/jupyter-collaboration/issues/162)
# - jupyter_collaboration==1.0.1
- jupyterhub==4.1.5
- nbconvert==7.6.0
- nbconvert[webpdf]==7.16.4
- gh-scoped-creds==4.1
- nb2pdf==0.6.2
- nbpdfexport==0.2.1
Expand Down
5 changes: 5 additions & 0 deletions deployments/data102/image/postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

# installing chromium browser to enable webpdf conversion using nbconvert
export PLAYWRIGHT_BROWSERS_PATH=${CONDA_DIR}
playwright install chromium
5 changes: 5 additions & 0 deletions deployments/data102/image/start
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

# See https://jira-secure.berkeley.edu/browse/DH-305
export PLAYWRIGHT_BROWSERS_PATH=${CONDA_DIR}
exec "$@"

0 comments on commit 8f3ab3b

Please sign in to comment.