SDK Reference
Log In
SDK Reference

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

Load 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 of yaml file 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 yaml file with a Link pipeline
      • This occurs when the yaml file was not created with Link.

Example

  1. Download sample yaml file below.

  2. Load a pipeline object from the yaml file.

    from mrx_link.sdk.utils import *
    
    if __name__ == "__main__":
    	pipeline = load_link_pipeline_from_kfp(file="sample.yaml")