Go to file
Paul Harrison b65160d529 Add Poetry as a requirement 2023-10-19 09:29:04 +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 Add make command to install dependencies 2023-10-19 09:26:21 +01:00
README.md Add Poetry as a requirement 2023-10-19 09:29:04 +01:00
ngrok.png Add Ngrok instructions to README.md 2023-08-22 13:26:50 +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

I recommend using asdf to manage your Python versions and Poetry installation.

Usage

Get Setup

Create your local environment with

make install

Ensure you have created and validated your account with Ngrok.

Make you Dataset

src/interview/data.py contains an example function to build the classic Iris dataset. You can extend this as you see fit to create one or more custom datasets relevant to your business. There is a Poetry script to run the make_data function and build the dataset, which you can run with:

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. Take not of the authentication token.

Setup a Tunnel

Start Ngrok with ngrok http 8888. This will give you the URL you will share with the candidate, as illustrated below.

Ngrok

By following this link the candidate can login to Jupyter Lab running in the container on your machine using the Jupyter authentication token you took note of above.