From 2789e022a88f8bfd07076e7b227600d7b73d0c65 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Thu, 21 Dec 2023 18:08:15 -0800 Subject: [PATCH] Try fixing nbextension-configurator Follows https://github.com/Jupyter-contrib/jupyter_nbextensions_configurator/issues/153#issuecomment-1481207418 Ref https://github.com/2i2c-org/infrastructure/issues/2729 --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4e68893..aa7501e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,4 +29,9 @@ RUN mamba env update -p ${CONDA_DIR} -f /tmp/environment.yml && mamba clean -afy # So we download alongside our packages. # Note that textblob.download_corpora just calls nltk to download corpora ENV NLTK_DATA ${CONDA_DIR}/nltk_data -RUN mkdir -p ${NLTK_DATA} && python -m textblob.download_corpora \ No newline at end of file +RUN mkdir -p ${NLTK_DATA} && python -m textblob.download_corpora + +RUN jupyter nbclassic-extension install --sys-prefix --py jupyter_nbextensions_configurator --overwrite +RUN jupyter nbclassic-extension enable --sys-prefix --py jupyter_nbextensions_configurator +RUN jupyter nbclassic-serverextension install --sys-prefix --py jupyter_nbextensions_configurator --overwrite +RUN jupyter nbclassic-serverextension enable --sys-prefix --py jupyter_nbextensions_configurator \ No newline at end of file