Fix copy/paste-ability of default URL presented on startup

Currently the default URL message given on the console on startup is:

---
Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://(myip.com or 127.0.0.1):8888/?token=8fdc8 ...
---

This will always need editing to use. Replace with host IP (e.g. 'myip.com')
to make it copy/pastable again.
pull/4103/head
Mark Einon 7 years ago
parent 04a686dbaf
commit 643b992690

@ -1432,7 +1432,7 @@ class NotebookApp(JupyterApp):
url += '/'
else:
if self.ip in ('', '0.0.0.0'):
ip = "(%s or 127.0.0.1)" % socket.gethostname()
ip = "%s" % socket.gethostname()
else:
ip = self.ip
url = self._url(ip)

Loading…
Cancel
Save