Skip to content

Commit

Permalink
Update Basic Pipeline example (#782)
Browse files Browse the repository at this point in the history
update pipelineparam
  • Loading branch information
swiftdiaries authored and k8s-ci-robot committed Feb 6, 2019
1 parent b5e529f commit cab950c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions samples/notebooks/Lightweight Python components - basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
"metadata": {},
"source": [
"#### Define the pipeline\n",
"Pipeline function has to be decorated with the `@dsl.pipeline` decorator and the parameters must have default values of type `dsl.PipelineParam`"
"Pipeline function has to be decorated with the `@dsl.pipeline` decorator"
]
},
{
Expand All @@ -199,9 +199,9 @@
" description='A toy pipeline that performs arithmetic calculations.'\n",
")\n",
"def calc_pipeline(\n",
" a=dsl.PipelineParam('a'),\n",
" b=dsl.PipelineParam('b', value='7'),\n",
" c=dsl.PipelineParam('c', value='17'),\n",
" a='a',\n",
" b='7',\n",
" c='17',\n",
"):\n",
" #Passing pipeline parameter and a constant value as operation arguments\n",
" add_task = add_op(a, 4) #Returns a dsl.ContainerOp class instance. \n",
Expand Down Expand Up @@ -278,7 +278,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
"version": "3.7.0"
}
},
"nbformat": 4,
Expand Down

0 comments on commit cab950c

Please sign in to comment.