How to install Jupyterhub extension on zero to jupyterhub

I have created Jupyterhub kubernetes and would like to install some useful Jupyterhub extension like https://github.com/jupyterlab/debugger but I am not sure how to do so.

Does anyone has experience on that? I browse through many websites but still cannot get a workround.

Thanks.

Same here ! I am also trying to add jupyterlab extension.

My first thought is to create a custom docker image for my users.
But each time I am trying to build this image

FROM jupyter/minimal-notebook:177037d09156
RUN conda install -c conda-forge mamba_gator
RUN jupyter labextension install @mamba-org/gator-lab

WORKDIR /home/jovyan

I am having this error:

ValueError: No version of @mamba-org/gator-lab could be found that is compatible with the current version of JupyterLab. However, it seems to support a new version of JupyterLab. Consider upgrading JupyterLab.

And I tried with diverse extensions so I don’t think it is a problem with gator-lab.

You’re doing the correct thing in building your own Docker image.
jupyter/minimal-notebook:177037d09156 is a very old image though 5 August 2018. Can you use a more up-to-date base image?

1 Like

Oh my gosh why I was using this old image :sweat_smile:

Indeed, once I used the most recent one everything is working fine. :slight_smile:
(by the way, it also solved my ui problems that I listed in another post).

Thanks a lot!

1 Like

I am still confused by one point. I have my extensions installed and enabled. I can see it from the extension manager. However, I don’t see anything in the launcher ? (nothing about the debugger or the gator).
Do you have an idea what is happening here ?
Thanks

Okay this time I got it all working correctly.
@lindaorny1 to make it work you need to build your own docker image as the one upper (minus the wrong tag to old) + add this in your config file :

singleuser:
  profileList:
    - display_name: "your environment"
      description: "This server contain all my extensions"
      # Configuration unique to this profile
      kubespawner_override:
        image: your_custom_image
        cmd: ["/bin/bash", "-c", "conda install -c conda-forge nb_conda_kernels && jupyterhub-singleuser --SingleUserNotebookApp.default_url=/lab"]
      default: true

And where I was surprised; the conda install nb_conda_kernels is very important ! Without you don’t have your extensions added in the launcher.

Hope you will be able to make it works in your side too.

1 Like

Thanks @MarineChap I ll try it out lately today