The method load_link_pipeline_from_kfp loads a pipeline object from an Kubeflow yaml file while creating the class LinkPipeline.
Load a pipeline object from an Kubeflow yaml file
yaml fileLoad a pipeline object from an Kubeflow yaml file created in Link.
load_link_pipeline_from_kfp(file: str = "") -> LinkPipeline
- Parameters
file(str): The path and name ofyamlfile to load
- Returns
LinkPipeline
- Troubleshooting
- FileNotFoundError: [Error 2] No such file or directory: '{file.yaml}'
- This occurs when the input file does not exist.
- ValueError: The file should be
yamlfile with a Link pipeline- This occurs when the
yamlfile was not created with Link.
- This occurs when the
- FileNotFoundError: [Error 2] No such file or directory: '{file.yaml}'
Example
-
Download sample
yamlfile below. -
Load a pipeline object from the
yamlfile.from mrx_link.sdk.utils import * if __name__ == "__main__": pipeline = load_link_pipeline_from_kfp(file="sample.yaml")
