You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had a functional nbgitpuller setup for a while but transitioned to use JupyterLab 3 and jupyter_server. After that, the nbgitpuller installation isn't functional and I'm not so confident on how to proceed but I figured I'd report some details.
Setup
A JupyterHub deployment where an environment variable is set on the user server, running a jupyter/docker-stacks derived image, and starting its start-singleuser.sh script.
Perhaps we need to ensure nbgitpuller have access to require and not assume it will have? I think of the issue currently to be caused by our single index.js file references require which is not available in the web frontend being loaded in my environment - while it has been previously when using jupyterlab 2 / jupyter notebook server.
consideRatio
changed the title
Issue after transitioning to use JupyterLab 3 and jupyter_server with nbgitpuller
require not defined - related to use of JupyterLab 3 / jupyter_server?
May 5, 2021
There's an open issue with nbgitpuller which breaks in jupyterlab
jupyterhub/nbgitpuller#176
This commit pulls jupyterlab from main until that is fixedt
Signed-off-by: Ian Allison <iana@pims.math.ca>
Bug description
I've had a functional nbgitpuller setup for a while but transitioned to use JupyterLab 3 and jupyter_server. After that, the nbgitpuller installation isn't functional and I'm not so confident on how to proceed but I figured I'd report some details.
Setup
A JupyterHub deployment where an environment variable is set on the user server, running a jupyter/docker-stacks derived image, and starting its
start-singleuser.sh
script.# https://github.com/jupyterhub/jupyterhub/blob/master/docs/source/reference/config-user-env.md#switching-to-jupyter-server JUPYTERHUB_SINGLEUSER_APP=jupyter_server.serverapp.ServerApp
Accessing a link like https://example.local/user/user-redirect/git-pull?repo=https... leads to the observed issue
Observation 1 - git-pull UI shows, but JS gets stuck
Another less critical error is this about styles in case it could be relevant.
Observation 2 - no logs found emitted by jupyter_server
I tried looking for logs in the user server itself, but found nothing about this
/git-pull
requestExpected behaviour
require
was missing when using a nbgitpuller linkYour personal set up
Z2JH master, JupyterHub 1.4.0 (latest)
nbgitpuller 0.9.0 (latest), jupyter_server 1.6.4 (latest), jupyter-server-proxy 3.0.2 (latest)
Full environment
Solution
Perhaps we need to ensure nbgitpuller have access to
require
and not assume it will have? I think of the issue currently to be caused by our singleindex.js
file referencesrequire
which is not available in the web frontend being loaded in my environment - while it has been previously when using jupyterlab 2 / jupyter notebook server.I wonder if this is related? https://stackoverflow.com/a/19059825
If we may or may not have access to
require
, then what do we do? This error is on the absolute first line of code in our index.js file.nbgitpuller/nbgitpuller/static/index.js
Lines 1 to 6 in 207e3b2
The text was updated successfully, but these errors were encountered: