Skip to content

Commit

Permalink
Merge pull request #5864 from felder/felder_DH-326
Browse files Browse the repository at this point in the history
[DH-326] make webpdf export work for eecs
  • Loading branch information
felder authored Jul 16, 2024
2 parents f5c49b0 + 6191586 commit 63e0504
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions deployments/eecs/image/apt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ texlive-lang-chinese

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

# playwright deps https://jira-secure.berkeley.edu/browse/DH-325
libnss3
libnspr4
2 changes: 2 additions & 0 deletions deployments/eecs/image/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ dependencies:
- PyQt5==5.15.4
# From https://github.com/berkeley-dsep-infra/datahub/issues/1363#issuecomment-598916469
- lcapy==0.96
# make webpdf export work DH-326
- nbconvert[webpdf]==7.16.4
# For desktop environment
- jupyter-desktop-server==0.1.3
- -r infra-requirements.txt
Expand Down
6 changes: 5 additions & 1 deletion deployments/eecs/image/postBuild
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/bash
#!/usr/bin/env bash
set -euo pipefail

# 2024-01-13 sknapp: incompatible due to notebook 7
# jupyter contrib nbextensions install --sys-prefix --symlink
# jupyter nbextensions_configurator enable --sys-prefix

# 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/eecs/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 63e0504

Please sign in to comment.