Skip to content

Commit

Permalink
Merge pull request #5874 from felder/felder_DH-333
Browse files Browse the repository at this point in the history
[DH-333] making webpdf export work for astro
  • Loading branch information
felder authored Jul 17, 2024
2 parents 2637148 + ee57644 commit 34bc748
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions deployments/astro/image/apt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ vim

# 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/astro/image/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,6 @@ dependencies:
- twine
- 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
6 changes: 5 additions & 1 deletion deployments/astro/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/astro/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 34bc748

Please sign in to comment.