Developing & Running Code in Notebooks
This section provides an overview of how to write and execute code within notebooks.
In Data Science Lab (DSLab), users can write and execute code in notebooks for data science projects. Notebooks are composed of code cells that can be run to process data, train models, and generate results. This guide explains how to create, run, and manage code cells within a notebook, as well as how to use various options available for code cells.
Steps to Write and Run Code in a Notebook
Navigation path: Data Science Lab > Workspace > Repo Folder > Notebook
Clearing the Output of a Code Cell
Clear Output:
If you need to clear the output of a code cell, click on the Clear Output icon provided next to the code cell output.
This will remove the output displayed below the cell, keeping the code intact.
Running a Code Cell
Options for a Code Cell
By clicking on a code cell, the following options are available for managing and modifying the cell:
Sl. No.
Icon
Name
Action
1

Code Assist
Adds an AI powered assist
cell below in the notebook.
2

Move the cell up
Moves the code cell upwards in the notebook.
3

Move the cell down
Moves the code cell downwards in the notebook.
4

Delete Cell
Deletes the selected code cell from the notebook.
5

More Actions
Opens additional actions, including: Cut Cell, Copy Cell, Paste Cell, Transform, Save Model, Predict, and Save Artifact..
Important Notes
Kernel: Before running any notebook cell, ensure that the Kernel is up and running.
If the user attempts to run a notebook cell before the Kernel is started/restarted, a warning message will be displayed.
Code Execution: Cells should be executed in sequence to maintain the flow of data processing and model training.