jupyter / jupyter/notebook

Convenient notebook URL for copy-pasting is not convenient when --ip flag specified

Open
#3,947 8 comments 10 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

When passing the --ip flag (in my case, providing --ip 0.0.0.0 to make the server available on an intranet) to Jupyter notebook, the resulting URL string that is printed to the terminal for copy-pasting into the browser has the following form:

https://(PUBLIC_IP or 127.0.0.1):5000/?token=TOKEN

The host part of the URL has the disjunction `(PUBLIC_IP or 127.0.0.1)` which makes the URL invalid and not suitable for copy-pasting, rendering this feature somewhat broken in this context.

What about changing the behaviour to produce the following two alternative URLs when the --ip flag is specified:

https://PUBLIC_IP:5000/?token=TOKEN
https://127.0.0.1:5000/?token=TOKEN

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.