Go to file
Paul Harrison e029607f88 Build and run Jupyter in a Docker container
This commit will allow you to:

- Create a sample dataset.
- Build a Docker container in which to run Jupyter.
- Run Jupyter Lab in collaboration mode, making it available at
  `localhost:8888`.
2023-08-11 15:50:54 +01:00
data Build and run Jupyter in a Docker container 2023-08-11 15:50:54 +01:00
notebooks Build and run Jupyter in a Docker container 2023-08-11 15:50:54 +01:00
src/interview Build and run Jupyter in a Docker container 2023-08-11 15:50:54 +01:00
.gitignore Build and run Jupyter in a Docker container 2023-08-11 15:50:54 +01:00
Dockerfile Build and run Jupyter in a Docker container 2023-08-11 15:50:54 +01:00
LICENSE Build and run Jupyter in a Docker container 2023-08-11 15:50:54 +01:00
Makefile Build and run Jupyter in a Docker container 2023-08-11 15:50:54 +01:00
README.md Build and run Jupyter in a Docker container 2023-08-11 15:50:54 +01:00
poetry.lock Build and run Jupyter in a Docker container 2023-08-11 15:50:54 +01:00
pyproject.toml Build and run Jupyter in a Docker container 2023-08-11 15:50:54 +01:00

README.md

Data Science Pair Interview

Requirements

Usage

Get Setup

Create your local environment with

poetry install

Make you Dataset

src/interview/data.py contains an example function to build the classic Iris dataset. You can build this with

poetry run make-data

Run the Notebook with Docker

Build the container and run the notebook with

make build run

This will copy your data and notebook to the container, install any packages you specified in your pyproject.toml file, then run the notebook in the container. Jupyter will be available on port 8888.