From 14cd447d81fde93de3d18ece9d224d6b3c4c4f7f Mon Sep 17 00:00:00 2001 From: avouacr Date: Wed, 8 Nov 2023 17:39:03 +0000 Subject: [PATCH] chore(deps): set temporarily the version of jupyterlab-git see https://github.com/jupyterlab/jupyterlab-git/issues/1245 --- jupyter/Dockerfile | 3 ++- scripts/install-jupyterlab.sh | 8 ++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/jupyter/Dockerfile b/jupyter/Dockerfile index e47b3440..cc349ccf 100644 --- a/jupyter/Dockerfile +++ b/jupyter/Dockerfile @@ -5,8 +5,9 @@ LABEL maintainer="InseeFrLab " USER root -# Install JupyterLab RUN /opt/install-jupyterlab.sh && \ + # Install JupyterLab extensions + pip install --pre jupyterlab-git==0.50.0rc0 && \ # If using Conda and Julia is installed, make its kernel available in Jupyter if command -v julia && [ -n "$MAMBA_DIR" ]; then \ julia -e 'using Pkg; pkg"add IJulia"; pkg"precompile"' && \ diff --git a/scripts/install-jupyterlab.sh b/scripts/install-jupyterlab.sh index 34a0ca3d..53d465ab 100644 --- a/scripts/install-jupyterlab.sh +++ b/scripts/install-jupyterlab.sh @@ -3,12 +3,8 @@ set -e # If Conda is installed, use it to install Jupyterlab if command -v mamba ; then - mamba install -y jupyterlab jupyterlab-git + mamba install -y jupyterlab else # Else, install via pip - if [ "`which pip3`" = "" ]; then - apt-get update - apt-get install -y --no-install-recommends python3-pip - fi - pip install jupyterlab jupyterlab-git + pip install jupyterlab fi