Skip to content

Commit

Permalink
Clean conda env; work towards webpdf export
Browse files Browse the repository at this point in the history
  • Loading branch information
athornton committed Aug 8, 2024
1 parent ef64e32 commit 7b630db
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/install-dependency-packages
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ apt-get update
# build-essential: sometimes needed to build Python modules
# git: required by setuptools_scm
# libffi-dev: sometimes needed to build cffi, a cryptography dependency
# libxss1 ... libgtk-3-0: needed for WebPDF export of notebooks
# libxss1 ... libgbm1: needed for WebPDF export of notebooks
# libdigest-md5-file-perl ... file: generally useful utilities
# man: it is an interactive system, after all
# curl: required to download the DM stack installer
# nano ... ed: enough editors to cover most people's habits
apt-get -y install --no-install-recommends \
build-essential git libffi-dev \
libxss1 libasound2 libcups2 libpango-1.0.0 libgtk-3-0 \
libnss3 libnspr4 libdrm2 libgbm1 \
libdigest-md5-file-perl jq gh hub unzip ack screen tmux tree file \
man curl \
nano vim emacs-nox ed
Expand Down
2 changes: 2 additions & 0 deletions scripts/install-dm-stack
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ find ${stackdir} -maxdepth 5 -name src -type d -exec rm -rf {} + \
eups distrib install -t $TAG lsst_distrib
curl -sSL $sbt | python
setup lsst_distrib

mamba clean -a -f -y --no-banner # Not clear that -f is safe.
5 changes: 5 additions & 0 deletions scripts/install-jupyterlab
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,17 @@ python3 -m uv pip install --upgrade \
nbdime \
nbval \
panel \
playwright \
plotly \
pythreejs \
pre-commit \
rsp-jupyter-extensions \
ruff \
sidecar

# Having done that, install chromium (for webpdf export)
playwright install chromium

# File sharing doesn't work in the RSP environment; remove the extension.
jupyter labextension disable "@jupyterlab/filebrowser-extension:share-file"
# And Jupyter News is just obnoxious
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-rsp-user
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ uv pip install --no-build-isolation \
'jupyter_firefly_extensions'

# Clean caches
mamba clean -a -y --no-banner
mamba clean -a -y -f --no-banner
uv cache clean

0 comments on commit 7b630db

Please sign in to comment.