Skip to content
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

The token string appears twice in the url in the console when running jupyter notebook #3620

Closed
rs2 opened this issue May 17, 2018 · 4 comments · Fixed by #3656
Closed

The token string appears twice in the url in the console when running jupyter notebook #3620

rs2 opened this issue May 17, 2018 · 4 comments · Fixed by #3656

Comments

@rs2
Copy link

rs2 commented May 17, 2018

No description provided.

@tiangolo
Copy link

I think I'm experiencing the same issue.

I'm using Jupyter Notebooks from a Docker container.

Steps to reproduce:

With a Dockerfile with:

FROM python:3.6

RUN pip install jupyter
EXPOSE 8888

Build:

docker build -t jup .

Start a bash session:

docker run -it -p 8888:8888 jup bash

Start a Jupyter Notebook:

jupyter notebook --ip=0.0.0.0 --allow-root

The output is like:

[I 16:32:53.474 NotebookApp] Serving notebooks from local directory: /
[I 16:32:53.474 NotebookApp] 0 active kernels
[I 16:32:53.474 NotebookApp] The Jupyter Notebook is running at:
[I 16:32:53.474 NotebookApp] http://4db43b31b8ad:8888/?token=d85ad5a1f5327cf823326826dcc54119c5a3920620eab5b2
[I 16:32:53.474 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 16:32:53.474 NotebookApp] No web browser found: could not locate runnable browser.
[C 16:32:53.474 NotebookApp]

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://4db43b31b8ad:8888/?token=d85ad5a1f5327cf823326826dcc54119c5a3920620eab5b2&token=d85ad5a1f5327cf823326826dcc54119c5a3920620eab5b2

The expected output in the last section would be:

Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://4db43b31b8ad:8888/?token=d85ad5a1f5327cf823326826dcc54119c5a3920620eab5b2

But the token parameter is repeated. And using it that way in something different than a browser, e.g. Visual Studio Code Jupyter extension, it doesn't work and throws an error.

@VanDavv
Copy link

VanDavv commented May 30, 2018

I'm having this issue also.

I think the output should be like

Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://0.0.0.0:8888/?token=d85ad5a1f5327cf823326826dcc54119c5a3920620eab5b2

@glebashnik
Copy link

I have double token issue with JupyterLab, running from Docker.

What about ip, why it's docker container id instead of the ip? A feature or a bug?

takluyver added a commit to takluyver/notebook that referenced this issue Jun 2, 2018
@takluyver
Copy link
Member

#3656 eliminates the double token.

The thing with the docker container ID thing is separate. It's meant to be a feature, but it doesn't work very well with docker. See #3605 for more about that.

@minrk minrk added this to the 5.6 milestone Jun 15, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants