Jupyter extensions are not loading in binderhub

Hi,

I am trying to install the mstrio-py in the binderhub instance. I tried different configuration files(requirement.txt, pipfile etc).

But mstrio jupyter plugin extensions static files are not loading.

I also tried with dockerfile - still extension is not loading. Please see the dockerfile contents below.

FROM python:3.8-slim
RUN pip install --no-cache --upgrade pip &&
pip install --no-cache notebook &&
pip install --no-cache notebook jupyterlab &&
pip install jupyter-client==7.0.2 &&
pip install jupyter-contrib-core==0.3.3 &&
pip install jupyter-contrib-nbextensions==0.5.1 &&
pip install jupyter-core==4.7.1 &&
pip install jupyter-highlight-selected-word==0.2.0 &&
pip install jupyter-latex-envs==1.4.6 &&
pip install jupyter-nbextensions-configurator==0.4.1 &&
pip install jupyterlab-pygments==0.1.2

RUN pip install --no-cache notebook jupyterlab
RUN pip install npm
RUN pip install ipywidgets
RUN pip install mstrio-py
RUN pip install jupyter_contrib_nbextensions
RUN jupyter contrib nbextension install --user

RUN jupyter nbextension install connector-jupyter --py --sys-prefix
RUN jupyter nbextension enable connector-jupyter --py --sys-prefix

ARG NB_USER=jovyan
ARG NB_UID=1000
ENV USER ${NB_USER}
ENV NB_UID ${NB_UID}
ENV HOME /home/${NB_USER}

RUN adduser --disabled-password
–gecos “Default user”
–uid ${NB_UID}
${NB_USER}

COPY . ${HOME}
USER root
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}

repo link: GitHub - saratparameswar/minimal-dockerfile: A starting point for your custom Dockerfile that works on binder. You probably don't want to use this.

Please help.

Do you have problems with other extensions, or only mstrio-py?

I tried with ipyleaflet extension. It is working perfectly in binderhub. Also when I running the docker image in local, mstrio-py plugin works. The issue is with binderhub only.

BinderHub uses repo2docker to build docker images. To help narrow down the issue could you try building and launching your repo locally using it?

Ok. I will try that. One more observation,I can see /hub is url is appended with the static url. These files are not loading when the jupyter page launches in binderhub.

Is this is causing the issue?

It could be! Can you try running Jupyter notebook/lab locally, but specify a base-url? E.g.:

jupyter-notebook --ServerApp.base_url=/test-prefix --NotebookApp.base_url=/test-prefix

Your server should be running under http://localhost:8888/test-prefix, see if the extension works there.

@manics

I tried to run the jupyter notebook with a base url
jupyter-notebook --ServerApp.base_url=/test-prefix --NotebookApp.base_url=/test-prefix

Same issue is there in local too!!

Extension is not working

1 Like

Hi, I tried to run the jupyter notebook with a base url
jupyter-notebook --ServerApp.base_url=/test-prefix --NotebookApp.base_url=/test-prefix

Same issue is there in local too!!

Extension is not working