Utility
This tab allows to create and list the python scripts (.py files) that can be imported to your notebook.
Last updated
This tab allows to create and list the python scripts (.py files) that can be imported to your notebook.
Last updated
Check out this walk-through on how to import a Utility scrip file to the DS Lab Project.
Navigate to the Utility tab for a Project.
Click the Add Script option.
The Add utility script page opens.
Select the Import Utility option.
Provide a Name for the Utility script.
Provide description for the Utility script.
Use the Choose File option to import a Utility file from the system.
After the file gets imported from the system, the file name appears next to the Choose File option.
The Save option will be enabled, click the Save option.
A notification message appears.
The imported script gets added under the Utility tab.
Copy a utility script name using the Utility list.
Navigate to the Notebook tab.
Upload a Notebook or create a new Notebook and Navigate to the Notebook page.
Add a Code cell.
Write code to import data with specific class.
Provide the Utility script as the resource to get data.
Specify the variables to get the class and get the data in the next code cell.
Provide print function to see the data.
Run all the cells.
You can get the output below.
Navigate to the Utility tab.
Select an uploaded utility script from the list.
Click the Edit icon.
The Update Utility Script page opens displaying the utility script content.
Click the Validate option.
The Logs will be displayed in the Logs space.
Click the Update option.
A success message appears.
The selected Utility script gets updated.
Please Note:
The name of the selected utility script cannot be changed by using the update option.
Refer the Data Science Lab Quick Start Flow page to get an overview of the Data Science Lab module in nutshell.