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 ofipynb
file to load
- Returns
LinkPipeline
- Troubleshooting
- NameError: It must not be blank
- This occurs when
file
is 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
yaml
file with a Link pipeline- This occurs when the
ipynb
file was not created with Link.
- This occurs when the
- NameError: It must not be blank
Example
-
Download sample
ipynb
file below. -
Load a pipeline object from the
ipynb
file.from mrx_link.sdk.utils import * if __name__ == "__main__": pipeline = load_link_pipeline_from_ipynb(file="sample.ipynb")