---
agentTools:
  projectIndex: https://makinarocks-link.readme.io/llms.txt
---

# load_link_pipeline_from_ipynb

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

Load 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 of `ipynb` file to load
* **Returns**
  * `LinkPipeline`
* **Troubleshooting**
  * *NameError: It must not be blank*
    * This occurs when `file` is blank.
  * *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.

### Example

1. Download sample `ipynb` file below.
   * [sample.ipynb](https://docs.google.com/uc?export=download\&id=1bUW33d6rNp-IUmY8vXzCeRlmeOJqX1xz)
2. Load a pipeline object from the `ipynb` file.

   ```Text Python
   from mrx_link.sdk.utils import *

   if __name__ == "__main__":
       pipeline = load_link_pipeline_from_ipynb(file="sample.ipynb")   
   ```