Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.
Open
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
21 changes: 10 additions & 11 deletions deployments/utoronto/image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -163,26 +163,25 @@ RUN sed -i -e '/^R_LIBS_USER=/s/^/#/' /etc/R/Renviron && \

USER ${NB_USER}

COPY environment.yml /tmp/

RUN conda env update -p ${CONDA_DIR} -f /tmp/environment.yml

COPY install-jupyter-extensions.bash /tmp/install-jupyter-extensions.bash
RUN /tmp/install-jupyter-extensions.bash

# Set CRAN mirror to rspm before we install anything
COPY Rprofile.site /usr/lib/R/etc/Rprofile.site
# RStudio needs its own config
COPY rsession.conf /etc/rstudio/rsession.conf

# Install IRKernel
RUN r -e "install.packages('IRkernel', version='1.1.1')" && \
r -e "IRkernel::installspec(prefix='${CONDA_DIR}')"

# Install R packages, cleanup temp package download location
COPY install.R /tmp/install.R
RUN /tmp/install.R && \
rm -rf /tmp/downloaded_packages/ /tmp/*.rds

COPY requirements.txt /tmp/
RUN python3 -m pip install -r /tmp/requirements.txt

COPY install-jupyter-extensions.bash /tmp/install-jupyter-extensions.bash
RUN /tmp/install-jupyter-extensions.bash

# Install IRKernel
RUN r -e "install.packages('IRkernel', version='1.1.1')" && \
r -e "IRkernel::installspec(prefix='${CONDA_DIR}')"

# Disable history.
ADD ipython_config.py ${CONDA_PREFIX}/etc/ipython/
59 changes: 0 additions & 59 deletions deployments/utoronto/image/environment.yml

This file was deleted.

7 changes: 0 additions & 7 deletions deployments/utoronto/image/install-jupyter-extensions.bash
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
#!/bin/bash
set -euo pipefail

jupyter labextension install --debug \
@jupyter-widgets/jupyterlab-manager@2 \
@jupyterlab/[email protected] \
[email protected] \
[email protected] \
[email protected]

# Install jupyter-contrib-nbextensions
jupyter contrib nbextension install --sys-prefix

Expand Down
55 changes: 55 additions & 0 deletions deployments/utoronto/image/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# for jupyter-desktop-server
websockify

numpy
scipy
matplotlib
pandas
seaborn
sympy
networkx
scikit-learn
beautifulsoup4
statsmodels
nltk
spacy
geopandas
# From https://github.com/utoronto-2i2c/jupyterhub-deploy/issues/29
astroquery
astropy
galpy

# Infrastructure things
jupyterlab==3.*
voila==0.2.10
nbgitpuller==0.10.*
jupyter-resource-usage==0.5.1
RISE==5.6.1
jupyter_contrib_nbextensions==0.5.1
jupyter-desktop-server==0.1.3
git-credential-helpers==0.2
notebook==6.1.6
jupyterhub==1.3.0
jupyter-rsession-proxy==1.2
jupyter-shiny-proxy==1.1
jupyter-tree-download==1.0.1
ipywidgets==7.6.2
traitlets>=5.0
nbformat>=5.0
# This is temporary (ref: https://github.com/utoronto-2i2c/jupyterhub-deploy/issues/77)
jedi==0.17.2

datascience
geojson
folium
geopy

# nbextensions
jupyterthemes==0.20.0
qgrid==1.3.1

# JupyterLab extensions
jupyterlab_widgets==1.0.*
jupyter-server-proxy==3.0.2
jupytext==1.10.*
ipympl==0.7.0