Commit 15f89a13 authored by Eszter Schoell's avatar Eszter Schoell
Browse files

init commit

parent 362dfb5b
Loading
Loading
Loading
Loading

README.md

0 → 100755
+27 −0
Changes for README.md: 27 added lines, 0 removed lines.
Original line number Diff line number Diff line
# ${COURSE TITLE GOES HERE}

![${COURSE IMAGE GOES HERE}](${COURSE URL})

This project contains the Jupyter Notebooks and the associated Dockerfile for ${INSTRUCTOR} **${TITLE}**. It contains both the exercises (/notebooks) and the solutions (/solutions), as well as any data or files needed (/data).

This is a public repository so there is no need to create an account to download its contents. To download the source code from this page, click the 'Cloud' icon on the top right hand, above where the latest commit is detailed.

To download via git from your preferred terminal application, type: 

```git clone https://resources.oreilly.com/live-training/${COMPLETE URL}```

## Running Jupyter Locally via Docker

We've shared the same Dockerfile we use for our JupyterHub session in this repository, to make sure you can run all of these notebooks in your own time, on your own machine. This isn't required during class, but can be useful for learning once the session is over.

You will need to have Docker installed on your system to create images and run containers. You can find the installation steps for all platforms on the company's [website](https://docs.docker.com/install/)
.

1) Clone the repository for the class either using the UI or your terminal (see above)..

2) Once you have Docker installed, type the following on your terminal to create a Docker image: `docker build -t ${TITLE} .` (note the period)

3) That will take a little while to create a Docker image, but once completed, you can run your server with the following:
`docker run -p 8888:8888 ${TITLE}`

4) Head to `localhost:8888` in your browser and you will be able to access the Jupyter Notebooks.

create_jh/Dockerfile

0 → 100644
+28 −0
Changes for create_jh/Dockerfile: 28 added lines, 0 removed lines.
Original line number Diff line number Diff line
FROM us.gcr.io/jupyterhub-170614/<series_id>:<single user version>

USER root

# notebook and ipykernel should already be installed. now just need jupyterhub
RUN pip install --upgrade --no-cache-dir jupyterhub==0.8.1

# Specify tornado==4.5.3
RUN pip install --upgrade --no-cache-dir tornado==4.5.3

USER jovyan

WORKDIR /home/jovyan

# css stuff
RUN for i in `find / -wholename /opt/conda/*/custom.css 2>/dev/null` ; \
  do echo "@import url(\"https://cdn.oreillystatic.com/jupyterhub/jupyterhub-theme/custom/custom.css\")" \
  | tee ${i}; done

CMD jupyterhub-singleuser \
  --port=8888 \
  --ip=0.0.0.0 \
  --user="$JPY_USER" \
  --cookie-name=$JPY_COOKIE_NAME \
  --base-url=$JPY_BASE_URL \
  --hub-prefix=$JPY_HUB_PREFIX \
  --hub-api-url=$JPY_HUB_API_URL \
+2 −0
Changes for data/data_goes_here.txt: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
#
+0 −0

Empty file added.

requirements.txt

0 → 100644
+1 −0
Changes for requirements.txt: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
## Please list additional packages with version numbers
Loading