Follow the instructions for your operating system to install Docker:
Docker has a known bug with the virtual private network code they are using which “randomly” prevents some peoples’ configurations from doing proper DNS lookups in Windows 10 installs when the Docker DNS settings are set to “automatic”. To potentially resolve this issue, some users report that going into the Docker settings under network and selecting DNS Server - fixed: 8.8.8.8 may make it work. In the Windows 10 version of Docker, right-click on Docker in the taskbar and choose settings – in the dialog that appears; “Network” is an option on the left navigation bar and the option appears there.
-
Open a new terminal window (Mac) or command prompt (Windows).
-
Run (or copy and paste) the following command to download the latest version of the Docker image. Be sure to hit 'return'! Be warned: this step takes the longest. Depending on your system, it could take up to 15 minutes.
docker pull hipstas/spokenweb
Enter the following commands in the terminal to kill an existing SpokenWeb container (if applicable), then run the Docker container. You will have to hit 'return' twice. [These commands are explained in more detail below.]
docker rm -f spokenweb
docker run -it --name spokenweb -d -p 8887:8887 -v ~/Desktop/sharedfolder:/sharedfolder hipstas/spokenweb
- Download all the repository files to the new 'sharedfolder' that Docker has created on your desktop by selecting the green "Clone or Download" button at https://github.com/hipstas/spokenweb/
- Unzip the files in to the 'sharedfolder' diretory.
When the commands above have finished running, open your browser to URL http://localhost:8887
to launch the Jupyter interface.
If you are unable to run Docker on your machine, you can use Binder to work with these Jupyter notebooks in your browser. Click the button below to launch. It may take several minutes to initialize the server.
Work done in Binder will not persist across sessions—if you close and re-open a Binder instance of this repository, any changes you made will be lost. You can download a notebook to save your changes by going to File > Download As with the notebook open in Jupyter.
Here are some resources to get you started using Jupyter Notebooks.
- NBViewer - For viewing (but not running or editing) notebooks quickly.
- Jupyter Notebook documentation
- Beginner Guide
- Notebook Basics
All operating systems are different but we want everyone to use the same kind so we will use Docker. Docker is an application that makes it possible to run a virtual copy of the Linux operating system within your primary OS. We will be using Ubuntu, a version of Linux that is often used to run web servers. Ordinarily, you would launch an Ubuntu server and then install the programs you need, one by one; Docker lets us speed up that process by defining our system's initial configuration in a plain text file, known as a Dockerfile. You can view the Dockerfile we are currently using here.
For more details on how Docker works, see this overview.
- Open a new terminal window (Mac) or command prompt (Windows).
- Enter the following command in the terminal window to download the Docker image files we'll be using. This could take several minutes.
docker pull pcda17/ubuntu-container
- When the download is complete, enter the following command to run the container. This will create a new directory called sharedfolder on your desktop.
docker run --name spokenweb -ti -p 8887:8887 -v ~/Desktop/sharedfolder/:/sharedfolder/ hipstas/spokenweb
The command above includes several options:
- The
--name
flag sets the name of our container asspokenweb
. -ti
tells Docker that we want to use an interactive terminal.-p
maps port 8887 in our container to port 8887 in our local OS.- The
-v
option defines a "shared volume" between the container and our local machine, a directory called sharedfolder. hipstas/spokenweb
identifies the image we want to download, which is hosted on the Docker Hub website.