Skip to content

Instantly share code, notes, and snippets.

@philipmather
Last active February 8, 2019 19:36
Show Gist options
  • Save philipmather/7373f11088da89a7b9a223a03631d931 to your computer and use it in GitHub Desktop.
Save philipmather/7373f11088da89a7b9a223a03631d931 to your computer and use it in GitHub Desktop.
Jupyter Notebook on GCP

Throw up a jupyter notebook

gcloud projects create gcp-build-env-`date +%y%m%d%H%m` --name="GCP Build Environment" --set-as-default

Assuming you have one billing account

gcloud beta billing projects link ${DEVSHELL_PROJECT_ID} --billing-account `gcloud beta billing accounts list | grep -C 1 -o -e '^[0-9A-Z]\{6\}-[0-9A-Z]\{6\}-[0-9A-Z]\{6\}' | head -n1` >> /dev/null

gcloud services enable sourcerepo.googleapis.com
gcloud services enable compute.googleapis.com

datalab create --zone=europe-west1-c my-datalab
<enter>,<enter>,<enter>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment