Docker: plugging into the jupyter/datascience-notebook

Again, quick notes for myself as this is subtly different depending on whether I am on a windows host or a linux host.

Install

Pulling down the datascience-notebook image is easy-peasy:

$ docker pull jupyter/datascience-notebook

Starting the notebook

Again, this is easy enough:

$ docker run -d -p 8888:8888 jupyter/datascience-notebook start-notebook.sh

Accessing the notebook

This is where there are subtle differences between linux and windows hosts. Linux is a piece of cake, open your browser and point to:localhost

localhost:8888

Windows is slightly different because we have to go through virtual box (unless you have windows enterprise with native docker). First, find the ip address of the default virtual machine:

$ docker-machine ip default

For me, this is 192.168.99.100. Then, open your browser and go to:

192.168.99.100:8888

Enjoy.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: