Skip to content

Commit 842e1ff

Browse files
authored
Update lab-02.ipynb
1 parent 76e9537 commit 842e1ff

File tree

1 file changed

+32
-0
lines changed
  • on_demand/kfp-caip-sklearn/lab-02-kfp-pipeline/exercises

1 file changed

+32
-0
lines changed

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,38 @@
525525
"!head covertype_training_pipeline.yaml"
526526
]
527527
},
528+
{
529+
"cell_type": "markdown",
530+
"metadata": {},
531+
"source": [
532+
"#### Set the command fields in the pipeline YAML"
533+
]
534+
},
535+
{
536+
"cell_type": "code",
537+
"execution_count": null,
538+
"metadata": {},
539+
"outputs": [],
540+
"source": [
541+
"!sed -i 's/\\\"command\\\": \\[\\]/\\\"command\\\": \\[python, -u, -m, kfp_component.launcher\\]/g' covertype_training_pipeline.yaml"
542+
]
543+
},
544+
{
545+
"cell_type": "code",
546+
"execution_count": null,
547+
"metadata": {},
548+
"outputs": [],
549+
"source": [
550+
"!cat covertype_training_pipeline.yaml | grep \"component.launcher\""
551+
]
552+
},
553+
{
554+
"cell_type": "markdown",
555+
"metadata": {},
556+
"source": [
557+
"You should see 6 lines in the output that were modified by the sed command."
558+
]
559+
},
528560
{
529561
"cell_type": "markdown",
530562
"metadata": {},

0 commit comments

Comments
 (0)