Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCBL273 : Notebook Fixes #2685

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,7 @@
"\n",
"\n",
"### Step 1: Install necessary libraries\n",
"\n",
"To install both services we'll be using in this lab, first set the user flag in a notebook cell:"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"id": "fuMBD_m32SOM"
},
"outputs": [],
"source": [
"USER_FLAG = \"--user\""
"\n"
]
},
{
Expand All @@ -72,7 +60,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
Expand Down Expand Up @@ -268,17 +256,19 @@
],
"source": [
"# Install necessary libraries\n",
"!pip3 install {USER_FLAG} google-cloud-aiplatform==1.0.0 --upgrade\n",
"!pip3 install {USER_FLAG} kfp google-cloud-pipeline-components==0.1.1 --upgrade"
"!pip install setuptools==57.5.0\n",
"!pip install google-cloud-aiplatform==1.0.0\n",
"!pip install kfp==1.5.0 # Try with an earlier version that is compatible\n",
"!pip install google-cloud-pipeline-components==0.1.1"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"!pip install -U google-cloud-aiplatform \"shapely<2\""
"!pip install shapely==1.8.5 geopandas"
]
},
{
Expand All @@ -299,7 +289,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {
"id": "V9irSOLF2caE"
},
Expand Down Expand Up @@ -402,7 +392,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {
"id": "6HY1T8ga2srn"
},
Expand All @@ -423,7 +413,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {
"id": "iAMz8MIS2zG4"
},
Expand All @@ -445,7 +435,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {
"id": "ZzNbMa2923ue"
},
Expand Down Expand Up @@ -476,7 +466,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
Expand All @@ -499,7 +489,7 @@
"'gs://cloud-training-prod-bucket-bucket/pipeline_root/'"
]
},
"execution_count": 5,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -549,7 +539,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 8,
"metadata": {
"id": "OlBup0Hk3XA1"
},
Expand Down Expand Up @@ -578,7 +568,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 9,
"metadata": {
"id": "VywgRJgQ3kAa"
},
Expand Down Expand Up @@ -610,7 +600,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 10,
"metadata": {
"id": "R6xzpY5d3w5C"
},
Expand Down Expand Up @@ -649,7 +639,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 11,
"metadata": {
"id": "7i7aTotY36rk"
},
Expand Down Expand Up @@ -699,7 +689,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 12,
"metadata": {
"id": "v0_LaqHl4Ksj"
},
Expand Down Expand Up @@ -734,7 +724,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 13,
"metadata": {
"id": "fR19GLwd4Rrw"
},
Expand All @@ -756,7 +746,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 14,
"metadata": {
"id": "hU-jMJ4n4Zuy"
},
Expand Down Expand Up @@ -788,7 +778,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 15,
"metadata": {
"id": "S2qkfsmN4d_r"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"In this notebook, you will learn how to create and run ML pipelines with Vertex Pipelines.\n",
"\n",
"\n",
"Each learning objective will correspond to a __#TODO__ in the [student lab notebook](../labs/intro_to_vertex_pipelines.ipynb) -- try to complete that notebook first before reviewing this solution notebook.\n",
"Each learning objective will correspond to a __#TODO__ in this student lab notebook -- try to complete this notebook first before reviewing this [solution notebook](../solutions/intro_to_vertex_pipelines.ipynb).\n",
"\n",
"\n",
"\n",
Expand All @@ -46,19 +46,7 @@
"\n",
"\n",
"### Step 1: Install necessary libraries\n",
"\n",
"To install both services we'll be using in this lab, first set the user flag in a notebook cell:"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"id": "fuMBD_m32SOM"
},
"outputs": [],
"source": [
"USER_FLAG = \"--user\""
"\n"
]
},
{
Expand All @@ -72,7 +60,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
Expand Down Expand Up @@ -268,17 +256,19 @@
],
"source": [
"# Install necessary libraries\n",
"!pip3 install {USER_FLAG} google-cloud-aiplatform==1.0.0 --upgrade\n",
"!pip3 install {USER_FLAG} kfp google-cloud-pipeline-components==0.1.1 --upgrade"
"!pip install setuptools==57.5.0\n",
"!pip install google-cloud-aiplatform==1.0.0\n",
"!pip install kfp==1.5.0 # Try with an earlier version that is compatible\n",
"!pip install google-cloud-pipeline-components==0.1.1"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"!pip install -U google-cloud-aiplatform \"shapely<2\""
"!pip install shapely==1.8.5 geopandas"
]
},
{
Expand All @@ -299,7 +289,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {
"id": "V9irSOLF2caE"
},
Expand Down Expand Up @@ -402,7 +392,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {
"id": "6HY1T8ga2srn"
},
Expand All @@ -423,7 +413,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {
"id": "iAMz8MIS2zG4"
},
Expand All @@ -445,7 +435,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {
"id": "ZzNbMa2923ue"
},
Expand Down Expand Up @@ -476,7 +466,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
Expand All @@ -499,7 +489,7 @@
"'gs://cloud-training-prod-bucket-bucket/pipeline_root/'"
]
},
"execution_count": 5,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -549,7 +539,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 8,
"metadata": {
"id": "OlBup0Hk3XA1"
},
Expand Down Expand Up @@ -578,7 +568,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 9,
"metadata": {
"id": "VywgRJgQ3kAa"
},
Expand Down Expand Up @@ -610,7 +600,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 10,
"metadata": {
"id": "R6xzpY5d3w5C"
},
Expand Down Expand Up @@ -649,7 +639,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 11,
"metadata": {
"id": "7i7aTotY36rk"
},
Expand Down Expand Up @@ -699,7 +689,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 12,
"metadata": {
"id": "v0_LaqHl4Ksj"
},
Expand Down Expand Up @@ -734,7 +724,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 13,
"metadata": {
"id": "fR19GLwd4Rrw"
},
Expand All @@ -756,7 +746,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 14,
"metadata": {
"id": "hU-jMJ4n4Zuy"
},
Expand Down Expand Up @@ -788,7 +778,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 15,
"metadata": {
"id": "S2qkfsmN4d_r"
},
Expand Down