Skip to content

Commit 76e9537

Browse files
authored
Update lab-02.ipynb
1 parent 6a42b77 commit 76e9537

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

on_demand/kfp-caip-sklearn/lab-02-kfp-pipeline/lab-02.ipynb

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,38 @@
521521
"!head covertype_training_pipeline.yaml"
522522
]
523523
},
524+
{
525+
"cell_type": "markdown",
526+
"metadata": {},
527+
"source": [
528+
"#### Set the command fields in the pipeline YAML"
529+
]
530+
},
531+
{
532+
"cell_type": "code",
533+
"execution_count": null,
534+
"metadata": {},
535+
"outputs": [],
536+
"source": [
537+
"!sed -i 's/\\\"command\\\": \\[\\]/\\\"command\\\": \\[python, -u, -m, kfp_component.launcher\\]/g' covertype_training_pipeline.yaml"
538+
]
539+
},
540+
{
541+
"cell_type": "code",
542+
"execution_count": null,
543+
"metadata": {},
544+
"outputs": [],
545+
"source": [
546+
"!cat covertype_training_pipeline.yaml | grep \"component.launcher\""
547+
]
548+
},
549+
{
550+
"cell_type": "markdown",
551+
"metadata": {},
552+
"source": [
553+
"You should see 6 lines in the output that were modified by the sed command."
554+
]
555+
},
524556
{
525557
"cell_type": "markdown",
526558
"metadata": {},
@@ -685,4 +717,4 @@
685717
},
686718
"nbformat": 4,
687719
"nbformat_minor": 4
688-
}
720+
}

0 commit comments

Comments
 (0)