-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binder does not work with Jupyter Server v2 #1038
Comments
If I set a password (the same but it does not matter) for notebook and jupyter-server, here is the server log:
|
Is this still an issue? |
As far as I know, yes. The easiest setup to make binder run with Jupyter Server rather than the old Notebook server is to add a #!/bin/bash
set -e
echo $@
exec jupyter-lab "${@:4}" |
I tried to dig a bit more into this. But this is really tricky. It does not work locally with a token neither if you do the following: conda create -n testlab jupyterlab=3
conda list
jupyter notebook --NotebookApp.default_url="/lab"
You will face the login page. The trouble is definitely a incompatibility between the new identity provider and the previous way of dealing with authentication. When going to For now in JupyterLab, I implemented a test when loading JupyterLab as old notebook extension to log a message if jupyter server is version 2. It stops the process if the default url is |
In the context of jupyterhub/repo2docker#1231, do you have any advice on how to try to force this behavior from a |
* Add minimal Dockerfile for repo2docker to build and launch successfully from matthewfeickert/pythia-python:pythia8.308. - Constrain 'jupyter-server<2.0.0' to avoid jupyterhub/repo2docker#1231 and jupyter-server/jupyter_server#1038 * Add binder_repo2docker Make target for local building with repo2docker. * Add Binder launch badge to README.
As mentioned in jupyter/notebook#6702 linked above, this may also affect Notebook's ability to run with Jupyter Server v2 (when launched directly, not when launched from within JupyterLab). |
Not only Binder - I'm also seeing this running |
I've got a PR attempting to fix this, #1221. The combination of "classic" notebook server (handlers inherit from IPythonHandler) running "modern" jupyter_server extensions (handlers that inherit from JS 2.0 This is because the modern jupyter_server extensions—which create an identity provider on the fly—overwrites the login cookie set by the classic handlers because they use the same cookie name. |
Guess this can probably be closed at this point? |
Description
If you install jupyter-server v2 as a dependency on Binder, binder will not work.
Reproduce
You could reproduce the error locally by
jupyter notebook --NotebookApp.default_url="/lab"
I try setting password and token to blank or to something. But it does not work. There is something about the cookie that gets cleaned I guess.
Expected behavior
You can access the server.
Context
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: