> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-science-lab-6/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-6/data-science-notebook/notebook-actions/register/export.md).

# Export

The Export icon provided for a Notebook redirects the user to export the Notebook as a script to the Data Pipeline module and GIT Repository.

## Exporting a Data Science Script

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhFEvs46BuaaHAKNDSR6T%2Fuploads%2FdJPhs7jdBuMBdFnlUkjj%2FExport%20as%20a%20script.mp4?alt=media&token=d50c3132-ad44-4172-a95f-b6df7c4b7208>" %}
***Export as a Script to Pipeline***
{% 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.
* Click the ***Register*** option for the Notebook.&#x20;

<figure><img src="https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/9S9W2Jix8JF2mopVRlr4/image.png" alt=""><figcaption></figcaption></figure>

* The ***Register*** window opens.
* Select the ***Select All*** option or the required script using the checkbox(es).
* Click the ***Next*** option.

<figure><img src="https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/6IoIy6e4CZ4l4vkUyey0/image.png" alt=""><figcaption></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 %}

* A notification appears stating that the selected script is valid.
* Select ***Export as a Script*** option by selecting it via the checkbox.
* Click the ***Libraries*** icon.

<figure><img src="https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/mTjf1O8LxIb3uN6sKG48/image.png" alt=""><figcaption></figcaption></figure>

* The ***Libraries*** drawer opens.
* Select available libraries by using checkboxes.
* Click the ***Close*** icon to close the Libraries drawer.

<figure><img src="https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/NsRHJFrQZKjtinmm8Z9e/image.png" alt=""><figcaption></figcaption></figure>

* The user gets redirected to the ***Register*** page.&#x20;
* Click the ***Finish*** option.

<figure><img src="https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/nN8eex5kCWKcSEnZ8L3d/image.png" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/erqzXVo3o8e3wA2BZoxf/image.png" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> The exported script will be available for the Data Pipeline module to be consumed inside a DS Lab Runner component.*
{% endhint %}

## Accessing an Exported Script in the Data Pipeline

* 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 from 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://content.gitbook.com/content/28ipFzCz8EMtVtHrBFLx/blobs/h7Ru5YUv66CsK9Gwc1sa/image.png" alt=""><figcaption><p><em><strong>Accessing an Exported Script inside the DS Lab Script Runner Component</strong></em> </p></figcaption></figure>
