Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DH-326] make webpdf export work for eecs #5864

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 "$@"
Loading