diff --git a/samples/notebooks/Lightweight Python components - basics.ipynb b/samples/notebooks/Lightweight Python components - basics.ipynb index e961e5f4df9..585e2ecf9ab 100644 --- a/samples/notebooks/Lightweight Python components - basics.ipynb +++ b/samples/notebooks/Lightweight Python components - basics.ipynb @@ -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" ] }, { @@ -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", @@ -278,7 +278,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.4" + "version": "3.7.0" } }, "nbformat": 4,