diff --git a/services/jupyter-hub/Dockerfile_singleuser b/services/jupyter-hub/Dockerfile_singleuser index 968c60d7..69ebacdb 100644 --- a/services/jupyter-hub/Dockerfile_singleuser +++ b/services/jupyter-hub/Dockerfile_singleuser @@ -89,6 +89,13 @@ RUN apt-get update && apt-get upgrade -y && \ libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6 \ r-base +# python 3.11 +RUN apt-get install python3.11-full python3.11-dev + +# be careful, this conflicts +RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 + + RUN apt-get update && apt-get upgrade -y # Microsoft repos @@ -132,7 +139,7 @@ RUN pip3 install --no-cache-dir --upgrade pip RUN pip3 install --no-cache-dir setuptools wheel virtualenv # jupyterhub stuff -RUN pip3 install --no-cache-dir ipywidgets jupyter jupyterhub jupyterlab jupyterlab-git dask-labextension importlib_metadata +RUN pip3 install --no-cache-dir ipywidgets jupyter jupyterhub jupyterlab jupyterlab-git importlib_metadata bitstream RUN pip3 install --no-cache-dir jupyterlab_widgets jupyter_contrib_core jupyter_contrib_nbextensions jupyter-server-proxy fastbook RUN pip3 install --no-cache-dir docker docker-compose dockerspawner jupyterhub-firstuseauthenticator jupyterhub-systemdspawner jupyterhub-jwtauthenticator jupyterhub-client jupyterhub-kerberosauthenticator RUN pip3 install --no-cache-dir jupyterhub-nanowireauthenticator jupyterhub-ldapauthenticator jupyterhub-kubespawner jupyterhub-nativeauthenticator diff --git a/services/jupyter-hub/Dockerfile_singleuser_gpu b/services/jupyter-hub/Dockerfile_singleuser_gpu index 086cad5c..b1bf2b5e 100644 --- a/services/jupyter-hub/Dockerfile_singleuser_gpu +++ b/services/jupyter-hub/Dockerfile_singleuser_gpu @@ -154,7 +154,7 @@ RUN pip3 install --no-cache-dir --upgrade pip RUN pip3 install --no-cache-dir setuptools wheel virtualenv # jupyterhub stuff -RUN pip3 install --no-cache-dir ipywidgets jupyter jupyterhub jupyterlab jupyterlab-git dask-labextension importlib_metadata +RUN pip3 install --no-cache-dir ipywidgets jupyter jupyterhub jupyterlab jupyterlab-git importlib_metadata bitstream RUN pip3 install --no-cache-dir jupyterlab_widgets jupyter_contrib_core jupyter_contrib_nbextensions jupyter-server-proxy fastbook RUN pip3 install --no-cache-dir docker docker-compose dockerspawner jupyterhub-firstuseauthenticator jupyterhub-systemdspawner jupyterhub-jwtauthenticator jupyterhub-client jupyterhub-kerberosauthenticator RUN pip3 install --no-cache-dir jupyterhub-nanowireauthenticator jupyterhub-ldapauthenticator jupyterhub-kubespawner jupyterhub-nativeauthenticator diff --git a/services/jupyter-hub/config/jupyterhub_config.py b/services/jupyter-hub/config/jupyterhub_config.py index 69b223bc..532c913a 100644 --- a/services/jupyter-hub/config/jupyterhub_config.py +++ b/services/jupyter-hub/config/jupyterhub_config.py @@ -148,7 +148,8 @@ def start(self): if self.user.name not in whitelist: whitelist.add(self.user.name) with open(userlist_path , "a") as f: - f.write(self.user.name + "\n") + f.write("\n") + f.write(self.user.name) if self.user.name in list(team_map.keys()): for team in team_map[self.user.name]: