Variable Explorer
Using the Variable Explorer in Data Science Lab
The Variable Explorer in Data Science Lab (DSLab) allows users to inspect and analyze the variables created and executed within notebook code cells. This feature provides detailed information about each variable, including its name, type, shape, and actual values, enabling better debugging and data exploration.
The Variable Explorer allows users to inspect variables dynamically without modifying the notebook code. This is useful for debugging, verifying data transformations, and exploring intermediate results.
Steps to Access the Variable Explorer
Navigation path: Data Science Lab > Workspace > left-side panel
Open a notebook (.ipynb file) in the workspace.
Write and execute code using the code cells.
Click the Variable Explorer to open it.
All variables created during the notebook execution will be listed under the Name column.
Hover over a variable to view its name, type, and shape details.
Exploring Variable Details
Click the Explore icon next to a variable.
The Preview Variable Details page opens.
Select a variable from the displayed list.
Click the Preview icon for the selected variable.
The Preview Variable Value page opens, displaying all the values of the selected variable in a tabular format.
Key Features
Displays all executed variables in the notebook.
Provides metadata: variable name, type, and shape.
Enables detailed inspection of variable values in tabular format.
Facilitates debugging and analysis by allowing users to explore variable contents at any point in the notebook execution.