Migrating a DSL Script via Git
The Git Export (Migration) and Import from Git functionality in Data Science Lab (DSLab) allows users to export notebooks and related project files to a Git repository and import them into another account, workspace, or server. This enables seamless migration of DSL projects, notebooks, and utility files while preserving version history and project structure.
Pushing a Notebook to Git for Migration
Navigation path: Data Science Lab > Workspace > Repo Folder > Notebook > Elipsis > Push into Git
Open the Notebook you wish to migrate from the Repo folder.
Click the Push into Git option from the notebook actions menu.
The Push into Git drawer will open.
Select the Git Export (Migration) option.
Provide a Commit Message describing the changes or purpose of the migration.
Click Push to migrate the selected notebook script version to the Git repository.
A notification message will confirm that the notebook has been successfully pushed and migrated.
Importing a DSL Script from Git
Navigation path: Apps Menu > Admin Module > Git Migration > Import File
Sign in to the target user account or workspace where the notebook will be imported.
Click the Admin module from the Apps menu.
Select Git Migration from the admin menu panel.
Click the Import File option.
In the Import Document page, click Import to open the Migration – Document Import page.
Configure the import settings:
Version Control Configuration: Select New VCS.
Module: Select DSLab from the drop-down menu.
Content Type: Select Notebook from the left-side panel.
The migrated notebooks are listed. Use the Search bar to filter and locate specific exported notebooks.
Select a notebook from the list.
Choose the version of the notebook you wish to import.
Click Migrate.
A notification message will confirm that the notebook has been successfully migrated.
Accessing the Imported Notebook
Open the Data Science Lab module.
Navigate to the List Project page.
The imported notebook will be listed under the corresponding DSLab project.
Important Notes
Only exported scripts can be migrated to Git.
When migrating a DSL notebook via Git Export, the project under which the notebook was created is also migrated.
Utility files associated with the same project are automatically included in the migration.
Migration preserves the notebook version and metadata for consistency across accounts and workspaces.
Last updated