Skip to content

Commit

Permalink
Update samples to use the latest versions of the python SDK (#1607)
Browse files Browse the repository at this point in the history
* Update samples to use the latest versions of the python SDK

* addressing comments

* fix typo
  • Loading branch information
gaoning777 authored and k8s-ci-robot committed Jul 15, 2019
1 parent cce52f4 commit 1793c6b
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 40 deletions.
3 changes: 1 addition & 2 deletions samples/ai-platform/Chicago Crime Pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
"%%capture\n",
"\n",
"# Install the SDK (Uncomment the code if the SDK is not installed before)\n",
"KFP_PACKAGE = 'https://storage.googleapis.com/ml-pipeline/release/0.1.22/kfp.tar.gz'\n",
"!pip3 install --upgrade pip -q\n",
"!pip3 install $KFP_PACKAGE --upgrade -q\n",
"!pip3 install kfp --upgrade -q\n",
"!pip3 install pandas --upgrade -q"
]
},
Expand Down
14 changes: 1 addition & 13 deletions samples/ibm-samples/ffdl-seldon/ffdl_pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,6 @@
"### Define the necessary environment variables and install the KubeFlow Pipeline SDK\n",
"We assume this notebook kernel has access to Python's site-packages and is in Python3.\n",
"\n",
"**Please fill in the below environment variables with you own settings.**\n",
"\n",
"- **KFP_PACKAGE**: The release of kubeflow pipeline library."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"KFP_PACKAGE = 'https://storage.googleapis.com/ml-pipeline/release/0.1.17/kfp.tar.gz'"
]
},
{
Expand Down Expand Up @@ -73,7 +61,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install $KFP_PACKAGE --upgrade\n",
"!pip install kfp --upgrade\n",
"!pip install ai_pipeline_params --upgrade"
]
},
Expand Down
16 changes: 1 addition & 15 deletions samples/notebooks/DSL Static Type Checking.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,6 @@
"# Setup"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"tags": [
"parameters"
]
},
"outputs": [],
"source": [
"# Configure the KFP_PACKAGE\n",
"KFP_PACKAGE = 'https://storage.googleapis.com/ml-pipeline/release/0.1.16/kfp.tar.gz'"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -176,7 +162,7 @@
}
],
"source": [
"!pip3 install $KFP_PACKAGE --upgrade"
"!pip3 install kfp --upgrade"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"BASE_IMAGE='gcr.io/%s/pusherbase:dev' % PROJECT_NAME\n",
"TARGET_IMAGE='gcr.io/%s/pusher:dev' % PROJECT_NAME\n",
"TARGET_IMAGE_TWO='gcr.io/%s/pusher_two:dev' % PROJECT_NAME\n",
"KFP_PACKAGE = 'https://storage.googleapis.com/ml-pipeline/release/0.1.16/kfp.tar.gz'\n",
"TRAIN_DATA = 'gs://ml-pipeline-playground/tfx/taxi-cab-classification/train.csv'\n",
"EVAL_DATA = 'gs://ml-pipeline-playground/tfx/taxi-cab-classification/eval.csv'\n",
"HIDDEN_LAYER_SIZE = '1500'\n",
Expand All @@ -66,7 +65,7 @@
"outputs": [],
"source": [
"# Install Pipeline SDK\n",
"!pip3 install $KFP_PACKAGE --upgrade"
"!pip3 install kfp --upgrade"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
},
"outputs": [],
"source": [
"EXPERIMENT_NAME = 'lightweight python components'\n",
"KFP_PACKAGE = 'https://storage.googleapis.com/ml-pipeline/release/0.1.16/kfp.tar.gz'"
"EXPERIMENT_NAME = 'lightweight python components'"
]
},
{
Expand All @@ -40,7 +39,7 @@
"outputs": [],
"source": [
"# Install the SDK\n",
"!pip3 install $KFP_PACKAGE --upgrade\n"
"!pip3 install kfp --upgrade\n"
]
},
{
Expand Down
3 changes: 1 addition & 2 deletions samples/notebooks/Local Development Quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
},
"outputs": [],
"source": [
"KFP_PACKAGE = 'https://storage.googleapis.com/ml-pipeline/release/0.1.16/kfp.tar.gz'\n",
"# PROJECT_ID is used to construct the docker image registry. We will use Google Container Registry, \n",
"# but any other accessible registry works as well. \n",
"PROJECT_ID='Your-Gcp-Project-Id'"
Expand All @@ -65,7 +64,7 @@
"outputs": [],
"source": [
"# Install Pipeline SDK\n",
"!pip3 install $KFP_PACKAGE --upgrade\n",
"!pip3 install kfp --upgrade\n",
"!mkdir -p tmp/pipelines"
]
},
Expand Down
2 changes: 1 addition & 1 deletion samples/nvidia-resnet/pipeline/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
FROM python:3.6

# Install Kubeflow Pipelines
RUN pip3 install https://storage.googleapis.com/ml-pipeline/release/latest/kfp.tar.gz --upgrade
RUN pip3 install kfp --upgrade
WORKDIR /workspace

ENTRYPOINT ["python", "pipeline.py"]
2 changes: 1 addition & 1 deletion samples/tfx-oss/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Install TensorFlow, TFX and Kubeflow Pipelines SDK
```
pip install tensorflow --upgrade
pip install https://storage.googleapis.com/ml-pipeline/tfx/tfx-0.12.0rc0-py2.py3-none-any.whl
pip install https://storage.googleapis.com/ml-pipeline/release/0.1.10/kfp.tar.gz --upgrade
pip install kfp --upgrade
```

Clone TFX github repo
Expand Down
2 changes: 1 addition & 1 deletion samples/tfx-oss/TFX Example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"outputs": [],
"source": [
"!pip3 install https://storage.googleapis.com/ml-pipeline/tfx/tfx-0.12.0rc0-py2.py3-none-any.whl \n",
"!pip3 install https://storage.googleapis.com/ml-pipeline/release/0.1.16/kfp.tar.gz --upgrade\n"
"!pip3 install kfp --upgrade\n"
]
},
{
Expand Down

0 comments on commit 1793c6b

Please sign in to comment.