From 67564271e34330b0ae5a68bd1d9622cfce01183b Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Wed, 27 Dec 2023 12:35:41 -0800 Subject: [PATCH] Try enabling nbextensions_configurator explicitly May allow us to switch to jupyter server here too. I had to remove the nbclassic-serverextension install line from here: https://github.com/Jupyter-contrib/jupyter_nbextensions_configurator/issues/153 --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4a76176..d5b4af1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,4 +31,8 @@ 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 && \ + jupyter nbclassic-extension enable --sys-prefix --py jupyter_nbextensions_configurator && \ + jupyter nbclassic-serverextension enable --sys-prefix --py jupyter_nbextensions_configurator \ No newline at end of file