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

Export as a Script to Pipeline

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.

  • The Register window opens.

  • Select the Select All option or the required script using the checkbox(es).

  • Click the Next option.

Please Note: The user must write a function to use the Export to Pipeline functionality.

  • 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.

  • The Libraries drawer opens.

  • Select available libraries by using checkboxes.

  • Click the Close icon to close the Libraries drawer.

  • The user gets redirected to the Register page.

  • Click the Finish option.

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

Please Note: The exported script will be available for the Data Pipeline module to be consumed inside a DS Lab Runner component.

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.