From fede1443531dafc59a6ef748a9233a552e2bcbc1 Mon Sep 17 00:00:00 2001
From: Moritz Maxeiner <mm@ucw.sh>
Date: Tue, 19 Jan 2021 20:42:05 +0100
Subject: [PATCH] [jupyterhub] Stay with jupyterlab 2 for now

---
 jupyterhub/base/Dockerfile | 28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)

diff --git a/jupyterhub/base/Dockerfile b/jupyterhub/base/Dockerfile
index 6e3ef22..f0037e5 100755
--- a/jupyterhub/base/Dockerfile
+++ b/jupyterhub/base/Dockerfile
@@ -32,24 +32,28 @@ ENV JUPYTERLAB_SETTINGS_DIR=$HOME/.config/jupyter/lab/user-settings
 ENV JUPYTERLAB_WORKSPACES_DIR=$HOME/.config/jupyter/lab/workspaces
 
 RUN python${PYTHON_VERSION} -m pip install \
-        jupyterlab \
-        jupyterhub \
-        ipympl \
+        jupyterlab==2.2.9 \
+        jupyterhub==1.2.2 \
+        ipympl==0.5.8 \
+        black \
+        isort \
 	&& \
     python${PYTHON_VERSION} -m jupyter labextension install \
-        @jupyter-widgets/jupyterlab-manager && \
-    python${PYTHON_VERSION} -m jupyter serverextension enable --sys-prefix --py jupyterlab && \
-    python${PYTHON_VERSION} -m jupyter labextension install \
+        @jupyter-widgets/jupyterlab-manager \
+    && \
+    python${PYTHON_VERSION} -m jupyter serverextension enable --sys-prefix --py jupyterlab
+
+RUN python${PYTHON_VERSION} -m jupyter labextension install \
         jupyter-webrtc \
         ipyvolume \
         jupyter-threejs \
-        jupyterlab-execute-time \
-    && \
+        jupyterlab-execute-time
+
+RUN python${PYTHON_VERSION} -m pip install jupyterlab_code_formatter==1.3.8 && \
     python${PYTHON_VERSION} -m jupyter labextension install @ryantam626/jupyterlab_code_formatter && \
-    python${PYTHON_VERSION} -m pip install jupyterlab_code_formatter && \
-    python${PYTHON_VERSION} -m jupyter serverextension enable --sys-prefix --py jupyterlab_code_formatter && \
-    python${PYTHON_VERSION} -m pip install black isort && \
-    python${PYTHON_VERSION} -m pip install jupyterlab-git && \
+    python${PYTHON_VERSION} -m jupyter serverextension enable --sys-prefix --py jupyterlab_code_formatter
+
+RUN python${PYTHON_VERSION} -m pip install jupyterlab-git && \
     python${PYTHON_VERSION} -m jupyter lab build
 
 RUN mkdir -p /usr/local/venv && \
-- 
GitLab