Skip to content

Commit 7bbdb99

Browse files
authored
Update multiple_frameworks_lab.ipynb
1 parent 25ac236 commit 7bbdb99

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

continuous_training/kubeflow/labs/multiple_frameworks_lab.ipynb

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,38 @@
10221022
"!head census_training_pipeline.yaml"
10231023
]
10241024
},
1025+
{
1026+
"cell_type": "markdown",
1027+
"metadata": {},
1028+
"source": [
1029+
"#### Set the command fields in the pipeline YAML"
1030+
]
1031+
},
1032+
{
1033+
"cell_type": "code",
1034+
"execution_count": null,
1035+
"metadata": {},
1036+
"outputs": [],
1037+
"source": [
1038+
"!sed -i 's/\\\"command\\\": \\[\\]/\\\"command\\\": \\[python, -u, -m, kfp_component.launcher\\]/g' census_training_pipeline.yaml"
1039+
]
1040+
},
1041+
{
1042+
"cell_type": "code",
1043+
"execution_count": null,
1044+
"metadata": {},
1045+
"outputs": [],
1046+
"source": [
1047+
"!cat census_training_pipeline.yaml | grep \"component.launcher\""
1048+
]
1049+
},
1050+
{
1051+
"cell_type": "markdown",
1052+
"metadata": {},
1053+
"source": [
1054+
"You should see 6 lines in the output that were modified by the sed command."
1055+
]
1056+
},
10251057
{
10261058
"cell_type": "markdown",
10271059
"metadata": {},

0 commit comments

Comments
 (0)