# Export

## Export to Pipeline

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz33KQNYQvBTgQKJBgwTz%2Fuploads%2Foz3yERwQxq2sDLU9aTCf%2FExporting%20a%20Notebook%209.0.mp4?alt=media&token=7392d0d6-f066-4593-91ad-487ffd53ee61>" %}
***Exporting a Notebook***
{% endembed %}

A Notebook can be exported to the Data Pipeline module using this option.

* Navigate to the ***Repo*** folder and select a Notebook from the ***Workspace*** tab.
* Click the ***Ellipsis*** icon for the selected Notebook to open the context menu.

<figure><img src="https://3817372244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz33KQNYQvBTgQKJBgwTz%2Fuploads%2FGiT9fvfLyJ26johHmrkn%2Fimage.png?alt=media&#x26;token=0dd8376b-6a6d-43f8-ba32-415b24241177" alt=""><figcaption></figcaption></figure>

* Click the ***Export*** option for the Notebook.&#x20;

<figure><img src="https://3817372244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz33KQNYQvBTgQKJBgwTz%2Fuploads%2FOeehhI5665OW1mmC3BVc%2Fimage.png?alt=media&#x26;token=1b8cc1d8-f927-4c95-acf8-da6de1003b2f" alt=""><figcaption><p><em><strong>Export option for a DSL Notebook</strong></em></p></figcaption></figure>

* The ***Export to Pipeline*** dialog box opens.
* Select a specific function using another checkbox.
* Click the ***Next*** option.

<figure><img src="https://3817372244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz33KQNYQvBTgQKJBgwTz%2Fuploads%2FgN8DCHIHopCmbc8pvebR%2Fimage.png?alt=media&#x26;token=831537f7-9797-4ff4-8ae5-f56a3c1aa9a0" alt=""><figcaption><p><em><strong>Exporing a Script  to Pipeline</strong></em></p></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> The user must write a function to use the **Export to Pipeline** functionality.*
{% endhint %}

* The next screen will appear with the selected script, click the ***Validate*** icon.
* A confirmation message appears to inform the user if the script is valid.
* The ***Export to Pipeline*** option gets enabled, click the ***Export to Pipeline*** option.

<figure><img src="https://3817372244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz33KQNYQvBTgQKJBgwTz%2Fuploads%2FP3WTHBewWt1Erpwr2dYO%2Fimage.png?alt=media&#x26;token=1a6a63ce-b1e1-4d76-8f22-5ff83ab3dea9" alt=""><figcaption><p><em><strong>Validating the Script</strong></em></p></figcaption></figure>

* A notification message appears to ensure that the Notebook script is exported.

<figure><img src="https://3817372244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz33KQNYQvBTgQKJBgwTz%2Fuploads%2FAo1JXSsm3HxqxOnxud3J%2Fimage.png?alt=media&#x26;token=3ec6817e-4335-4935-8903-690f30e33035" alt=""><figcaption></figcaption></figure>

* Navigate to a ***Data Pipeline*** containing the ***DS Lab Runner*** component.
* Open the ***Meta Information*** tab of the DS Lab Runner component.
* Select the required information as given below to access the exported script:
  * ***Execution Type***: Select the ***Script Runner*** option.
  * ***Function Input Type***: Select one option out of the given options: ***Data Frame*** or ***List***.
  * ***Project Name***: Select the Project name using the drop-down menu.
  * ***Script Name***: Select the script name using the drop-down menu.
  * ***External Library***: Mention the external library.
  * ***Start Function***: Select a function name using the drop-down menu.
* The exported Script is displayed under the ***Script*** section.

<figure><img src="https://3817372244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fz33KQNYQvBTgQKJBgwTz%2Fuploads%2Fh6vjQ5vX0jE3KPmsld5k%2Fimage.png?alt=media&#x26;token=a75a65e4-b867-430f-be52-9cdff47c015a" alt=""><figcaption><p><em><strong>The Exported Script inside the Pipeline module</strong></em></p></figcaption></figure>

<details>

<summary>Export External Libraries </summary>

The user can also export *External Libraries* used in the project along with scripts.

* Click the ***External Libraries*** ![](https://content.gitbook.com/content/z33KQNYQvBTgQKJBgwTz/blobs/pJPYP0v67mU3eer4mDMG/image.png) icon that appears next to the Validate icon inside the Export to Pipeline/ Git drawer window.

&#x20;      ![](https://content.gitbook.com/content/z33KQNYQvBTgQKJBgwTz/blobs/eRTjLdWeSXqwN8VuH17N/image.png)

* The *Libraries* panel opens.&#x20;
* Select the necessary libraries using the provided checkboxes to export them along with the scripts.

&#x20;      ![](https://content.gitbook.com/content/z33KQNYQvBTgQKJBgwTz/blobs/zNA1TLjdQeOMeo39Qz4C/image.png)

Remember to close the Libraries drawer after selecting the required scripts and use the ***Export to Pipeline*** option provided on the ***Export to Pipeline/ Git*** drawer to complete the action.

</details>
