Skip to content

Commit d55a76c

Browse files
authored
Update lab-02.ipynb
1 parent 99b05ec commit d55a76c

File tree

1 file changed

+34
-1
lines changed
  • workshops/kfp-caip-sklearn/lab-02-kfp-pipeline/exercises

1 file changed

+34
-1
lines changed

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

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,39 @@
523523
"!head covertype_training_pipeline.yaml"
524524
]
525525
},
526+
{
527+
"cell_type": "markdown",
528+
"metadata": {},
529+
"source": [
530+
"#### Set the command fields in the pipeline YAML"
531+
]
532+
},
533+
{
534+
"cell_type": "code",
535+
"execution_count": null,
536+
"metadata": {},
537+
"outputs": [],
538+
"source": [
539+
"!sed -i 's/\\\"command\\\": \\[\\]/\\\"command\\\": \\[python, -u, -m, kfp_component.launcher\\]/g' covertype_training_pipeline.yaml"
540+
]
541+
},
542+
{
543+
"cell_type": "code",
544+
"execution_count": null,
545+
"metadata": {},
546+
"outputs": [],
547+
"source": [
548+
"!cat covertype_training_pipeline.yaml | grep \"component.launcher\""
549+
]
550+
},
551+
{
552+
"cell_type": "markdown",
553+
"metadata": {},
554+
"source": [
555+
"You should see 8 lines in the output that were modified by the sed command."
556+
]
557+
},
558+
526559
{
527560
"cell_type": "markdown",
528561
"metadata": {},
@@ -690,4 +723,4 @@
690723
},
691724
"nbformat": 4,
692725
"nbformat_minor": 4
693-
}
726+
}

0 commit comments

Comments
 (0)