From 56db2e04a10703292bfd4fa421672ed977dfe762 Mon Sep 17 00:00:00 2001 From: ryanlovett Date: Sat, 7 Oct 2023 23:25:46 -0700 Subject: [PATCH] Also move qgrid to environment.yml. --- deployments/datahub/images/default/Dockerfile | 7 +++---- deployments/datahub/images/default/environment.yml | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/deployments/datahub/images/default/Dockerfile b/deployments/datahub/images/default/Dockerfile index ce1406743..afe797cd2 100644 --- a/deployments/datahub/images/default/Dockerfile +++ b/deployments/datahub/images/default/Dockerfile @@ -137,6 +137,9 @@ RUN mamba env update -p ${CONDA_DIR} -f /tmp/environment.yml && \ RUN jupyter contrib nbextensions install --sys-prefix --symlink && \ jupyter nbextensions_configurator enable --sys-prefix +# Used by MCB32, but incompatible with ipywidgets 8.x +RUN jupyter nbextension enable --py --sys-prefix qgrid + # Set up nbpdf dependencies ENV PYPPETEER_HOME ${CONDA_DIR} RUN pyppeteer-install @@ -158,10 +161,6 @@ RUN /usr/local/sbin/connector-text.bash #COPY connectors/2021-fall-phys-188-288.bash /usr/local/sbin/ #RUN /usr/local/sbin/2021-fall-phys-188-288.bash -# Used by MCB32, but incompatible with ipywidgets 8.x -RUN pip install --no-cache qgrid==1.3.1 -RUN jupyter nbextension enable --py --sys-prefix qgrid - # clear out /tmp USER root RUN rm -rf /tmp/* diff --git a/deployments/datahub/images/default/environment.yml b/deployments/datahub/images/default/environment.yml index 6e2dae87a..2ed09661d 100644 --- a/deployments/datahub/images/default/environment.yml +++ b/deployments/datahub/images/default/environment.yml @@ -128,6 +128,9 @@ dependencies: - gh-scoped-creds==4.1 +# Used by MCB32, but incompatible with ipywidgets 8.x +- qgrid==1.3.1 + - pip: - -r /tmp/infra-requirements.txt # Econ 148, Spring 2023 https://github.com/berkeley-dsep-infra/datahub/issues/4093