Skip to content

Commit

Permalink
changing environment variable setup
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjanalreddy committed Mar 21, 2022
1 parent fcd41fa commit 863d49d
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 1,922 deletions.
29 changes: 13 additions & 16 deletions notebooks/end-to-end-structured/labs/4a_sample_babyweight.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"\n",
"import pandas as pd\n",
"from google.cloud import bigquery"
]
Expand All @@ -63,19 +65,13 @@
"metadata": {},
"outputs": [],
"source": [
"%%bash\n",
"export PROJECT=$(gcloud config list project --format \"value(core.project)\")\n",
"echo \"Your current GCP Project ID is: \"$PROJECT"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# TODO: Change environment variables\n",
"PROJECT = \"asl-ml-immersion\" # Replace with your PROJECT"
"PROJECT = !gcloud config list --format 'value(core.project)'\n",
"PROJECT = PROJECT[0]\n",
"BUCKET = PROJECT\n",
"REGION = \"us-central1\"\n",
"\n",
"os.environ[\"BUCKET\"] = BUCKET\n",
"os.environ[\"REGION\"] = REGION"
]
},
{
Expand Down Expand Up @@ -814,9 +810,10 @@
],
"metadata": {
"environment": {
"name": "tf2-gpu.2-3.m69",
"kernel": "python3",
"name": "tf2-gpu.2-6.m91",
"type": "gcloud",
"uri": "gcr.io/deeplearning-platform-release/tf2-gpu.2-3:m69"
"uri": "gcr.io/deeplearning-platform-release/tf2-gpu.2-6:m91"
},
"kernelspec": {
"display_name": "Python 3",
Expand All @@ -833,7 +830,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.10"
"version": "3.7.12"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 863d49d

Please sign in to comment.