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