From 949472a7a849fa7f6e85d26e6a683a31a6c7fc2f Mon Sep 17 00:00:00 2001 From: Arpita Patel Date: Fri, 6 Oct 2023 11:03:18 -0500 Subject: [PATCH 1/2] Added nbfetch for hydroshare --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8f0e701..7a6154f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -65,6 +65,11 @@ RUN pip install spatialpandas easydev colormap colorcet duckdb dask_geopandas nb # apt-get clean -q #RUN pip3 install numpy pandas xarray netcdf4 joblib toolz pyyaml Cython +# Install nbfetch for hydroshare +pip install -U --no-cache-dir --upgrade-strategy only-if-needed git+https://github.com/hydroshare/nbfetch.git@master +# enable jupyter_server extension +jupyter server extension enable --py nbfetch --sys-prefix + # Update custom Jupyter Lab settings RUN sed -i 's/\"default\": true/\"default\": false/g' /srv/conda/envs/notebook/share/jupyter/labextensions/@axlair/jupyterlab_vim/schemas/@axlair/jupyterlab_vim/plugin.json From 4ad8141d843507361d142bfc6eef4276dfa1d98a Mon Sep 17 00:00:00 2001 From: Arpita Patel Date: Fri, 6 Oct 2023 11:09:03 -0500 Subject: [PATCH 2/2] Updated Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7a6154f..cac6331 100644 --- a/Dockerfile +++ b/Dockerfile @@ -66,9 +66,9 @@ RUN pip install spatialpandas easydev colormap colorcet duckdb dask_geopandas nb #RUN pip3 install numpy pandas xarray netcdf4 joblib toolz pyyaml Cython # Install nbfetch for hydroshare -pip install -U --no-cache-dir --upgrade-strategy only-if-needed git+https://github.com/hydroshare/nbfetch.git@master +RUN pip install -U --no-cache-dir --upgrade-strategy only-if-needed git+https://github.com/hydroshare/nbfetch.git@master # enable jupyter_server extension -jupyter server extension enable --py nbfetch --sys-prefix +RUN jupyter server extension enable --py nbfetch --sys-prefix # Update custom Jupyter Lab settings RUN sed -i 's/\"default\": true/\"default\": false/g' /srv/conda/envs/notebook/share/jupyter/labextensions/@axlair/jupyterlab_vim/schemas/@axlair/jupyterlab_vim/plugin.json