question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hostname in link printed to access the notebook server

See original GitHub issue

Seems like when we switch to notebook 5.5 the link printed in the output will no longer work for people. See for example https://github.com/jupyter/docker-stacks/issues/642

Two questions:

  • what is our policy for bumping versions on things like the notebook?
  • should we hardcode the --hostname argument to docker in repo2docker to be localhost or 0.0.0.0 or something else entirely?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
betatimcommented, Jun 13, 2018

From https://github.com/jupyter/notebook/pull/3668 it looks like there will be a configuration option for this in notebook in the next release of the notebook.

Currently repo2docker uses notebook v5.4 so we aren’t yet impacted by this. I’d suggest we don’t update the default version of the notebook to v5.5 and wait till https://github.com/jupyter/notebook/pull/3668 has been merged and released. Then go straight for that version with the appropriate configuration set in the default command repo2docker executes.

0reactions
AaronWatterscommented, Jun 14, 2018

In that case I’d be in favor of some sort of a solution where the host and port is decided “from the outside” and passed in to the container somehow (env vars?) and those passed in values are printed out when the server reports the connection URL. Sadly, I don’t know the details on how to implement this, but I suspect it should be possible, maybe as some sort of a wrapper to docker run?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hostname in link printed to access the notebook server #325
Seems like when we switch to notebook 5.5 the link printed in the output will no longer work for people.
Read more >
python - Specify hostname to jupyter notebook when running ...
You should first generate the config file: jupyter notebook --generate-config. Then using the config file you can set the custom URL by ...
Read more >
Running a notebook server
This document describes how you can secure a notebook server and how to run it on a public interface.
Read more >
How to get your notebook server running (Quickstart ...
First, just run this command and you'll see that printf simply prints the properly formatted parameters to the screen. The \n character is...
Read more >
How to determine your computer's hostname and hardware ...
Press the Start button, type cmd , then press Enter to start up a command shell · Type ipconfig /all · The hardware...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found