Before running, install python3, pip, and jupyter on your computer.
How to run the notebook:
- Setup python virtual environment:
virtualenv venv
source venv/bin/activate
# pip-compile # use this if you want to update versions
pip install -r requirements.txt
- Setup credentials to your GCP project
Follow the steps here to get the .json with credentials: https://cloud.google.com/bigquery/docs/reference/libraries Then:
export GOOGLE_APPLICATION_CREDENTIALS="here/comes/the/path/to/json/file.json"
- Setup ipython kernel:
pip install ipykernel
python -m ipykernel install --user --name=venv-creating-tables
- Run jupyter:
jupyter notebook