> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-science-lab-4/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/data-science-lab-4/repo-sync-project/tabs-for-a-data-science-lab-project/tabs-for-tensorflow-and-pytorch-environment/notebook/file-options/export.md).

# Export

An .ipynb file can be exported to the Data Pipeline module by using this option.

{% hint style="success" %}
*Check out the given illustration on how to export an .ipynb file to Data Pipeline module.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FgMtUXqnlbnVAC7koF1cB%2FExporting%20a%20Notebook%20script%20from%20a%20Repo%20Sync%20Project.mp4?alt=media&token=6892185b-8d74-4b19-87d4-3373e06850e8>" %}
***Exporting an .ipynb file to Data Pipeline***
{% endembed %}

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> Only .ipynb file will have **Export**, **Register**, and **Delete** options available to them under a Repo Sync Project. All other types of files will support only **Delete** option.*
{% endhint %}

* Navigate to the ***Notebook*** within a Repo Sync Project.
* Click the ***Ellipsis*** icon for a .ipynb file to open the context menu with more options.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FUdJPmwrWTVNgmYqV6jqv%2Fimage.png?alt=media&amp;token=51db72ca-f862-4c40-b21e-803733109f52" alt=""><figcaption></figcaption></figure>

* Select the **Export** option from the file context menu.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FNN5rlmkfgjcTAATVfzO0%2Fimage.png?alt=media&amp;token=5c84db8f-1114-43a9-98e8-1b53185df6c8" alt=""><figcaption></figcaption></figure>

* The ***Export to Pipeline/Git*** dialog box opens.
* Select the ***Export to Pipeline*** option using the checkbox.
* Select a specific function using another checkbox (The user may also select the ***Select All*** option using the given checkbox).
* Click the ***Next*** option.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FONc0xq4wdNFfcc0zgBHX%2Fimage.png?alt=media&amp;token=2f9a9134-3c1f-4551-8f2f-8ae7555607df" alt=""><figcaption></figcaption></figure>

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

* The next screen will appear with the selected script, click the ***Validate*** icon.
* A notification message appears to ensure that the script is validated.
* The ***Export to Pipeline*** option gets enabled, click it.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FPusX0jHiBYjG1FFI3OuY%2Fimage.png?alt=media&amp;token=4286bffc-431b-4e70-9113-547db5e3dd03" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FpQxxPinT2yCvxX6QNV0Z%2Fimage.png?alt=media&amp;token=36d990fd-54f6-4409-8d76-acbf1dd60d21" 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 ***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 displays under the ***Script*** section.

<figure><img src="https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FKlBp2HxbmWBTCIe7xEE6%2Fimage.png?alt=media&amp;token=6e82aa7f-9584-43c7-9688-d1346678e42c" 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://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FaiPrQN88VdoIWIf4cuMv%2Fimage.png?alt=media\&token=6baeb922-08d5-4320-8575-12c9fd293d5e) icon that appears next to the Validate icon inside the Export to Pipeline/ Git drawer window.

&#x20;      ![](https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FEBlimzXBD4Pisk4y3xIE%2Fimage.png?alt=media\&token=6c194118-b288-4ddf-bd07-3d24c4f3a372)

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

&#x20;      ![](https://4082649235-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QeOywZjV1cHo55cMW8u%2Fuploads%2FQEhaE60jLbcjcDV3gSCh%2Fimage.png?alt=media\&token=63d8a621-4452-4de7-8506-09221885615f)

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>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark>*&#x20;

* *Refer the* [***Data Science Lab Quick Start Flow***](https://docs.bdb.ai/data-science-lab-4/data-science-lab-quick-start-flow) *page to get an overview of the **Data Science Lab** module in nutshell.*&#x20;
* *The **Export to Git** option will be disabled for the .inpynb files saved under a **Repo Sync Project**.*
  {% endhint %}
