Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
can't view jupyter notebook in docker #297
I have followed the instructions for jupyter notebook use in a docker container and also downloaded firefox for compatibility. When I call
I then ran
I used this address in firefox and got an
Container named cocky_nobel is now showing that there are ports forwarded, which is what you want.
This should put you in the container, but you won't see a command prompt. To get to the prompt, type:
You should now have a command prompt within the container. From here, you should be able to follow the steps to get a Jupyter notebook going and access it in the browser on Roadrunner.
There shouldn't be any issues in regards to which browser you use.
Same issue is persisting
[I 21:16:49.008 NotebookApp] Serving notebooks from local directory: /Users/hollie/Documents/HP_BioInf/Oly_MBD/Notebooks
In a separate Terminal window, outside of your container, check the IP address of the Docker machine
Pasted into firefox
I figured out why this isn't working as described in the lab documentation. The Dockerfile actually has instructions to change the default Jupyter notebook IP to 0.0.0.0. That's this weird command:
That command uses sed to edit the Jupyter config file. It looks for the line that starts with "# c.NotebookApp.ip" and then changes the line to "c.NotebookApp.ip = \x2188.8.131.52\x27". The weird \x27 is some crazy representation for single quotes.
However, this command is no longer working and that's why you ended up having to specify the default IP address with the
I've fixed the Dockerfile so that the lab documentation for this remains accurate (i.e. can use
For the curious. the problem was caused by a change in the formatting of the Jupyter config file. The formatting used to have a space after the #. It no longer has a space. I changed the sed commands to be more "universal" so that they only look for lines in the config file that match the text (and, effectively, ignore the formatting of the config file).
Having the same issue :(
and when I do a
gets stuck above..