Data Science Lab
  • What is Data Science Lab?
  • Accessing the Data Science Lab Module
  • Homepage
  • List Projects
  • List Feature Stores
  • Create
    • Create Project
      • Container Status Message
    • Create Feature Store
  • Registered Models and APIs
  • Settings
  • Trash
  • Tabs for a DSL Project
    • Workspace
      • Workspace Folders
        • Repo Folder Attributes
          • Notebook Actions
            • Export
            • Register as Job
            • Notebook Version Control
            • Share
            • Delete
            • Information
        • Repo Folder Attributes for a Repo Sync Project
          • File Attributives
        • Utils Folder Attributes
          • Utility Actions
        • Files Attributes
      • Working with the Workspace tab
        • Create
        • Import
          • Importing Notebook
          • Pull from Git
        • Adding File and Folders
      • Linter
      • Git Console
    • Data
      • Adding Data
      • Data List Page
    • Model
      • Import Model
      • Explainer Generator
      • Export to GIT/ Model Migration
      • Model Explainer
      • Share a Model
      • Register a Model
      • Unregister a Model
      • Register a Model as an API Service
        • Register a Model as an API
        • Register an API Client
        • Pass Model Values in Postman
      • Delete Model
    • AutoML
      • Creating AutoML Experiment
      • AutoML List Page
        • View Explanation
          • Model Summary
          • Model Interpretation
            • Classification Model Explainer
            • Regression Model Explainer
            • Forecasting Model Explainer
          • Dataset Explainer
  • Data Science Notebook
    • Preview File
    • Save as Notebook
    • .ipynb File Cells
      • Using a Code Cell
      • Using a Markdown Cell
      • Using an Assist Cell
    • Resource Utilization Graph
    • Taskbar
    • Actions Icons
  • Model Creation using Data Science Notebook
  • Notebook Operations
    • Data
      • Copy Path Functionality
    • Secrets
    • Algorithms
    • Transforms
    • Artifacts
    • Variable Explorer
    • Writers
Powered by GitBook
On this page
  • Running Code inside a Code Cell
  • Various Options provided to a Code Cell
  1. Data Science Notebook
  2. .ipynb File Cells

Using a Code Cell

Write & Run Code to create Data Science Scripts and models using the .ipynb file.

Previous.ipynb File CellsNextUsing a Markdown Cell

Last updated 10 months ago

A user can write and execute code using the Data Science Notebook interface. This section covers the steps to write and run a sample code in the Code cell of the Data Science Notebook.

Check out the given walk-through on how to use a Code Cell under a .ipynb file.

Please Note: The above-given video displays inserting a new code cell using the Add Pre-cell icon for a code cell.

Running Code inside a Code Cell

  • Create a new .ipynb file.

  • A notification message appears to ensure the creation of the new .ipynb file.

  • Open the newly created .ipynb file.

  • Insert the first Code cell by using the Add pre-cell icon.

  • Write code inside the cell.

  • Click the Run cell icon to run the code.

Please Note: The Code cells also get code from the selected Notebook operations by using the right-side panel and selecting a specific option. E.g., The user can use the Data tab to get an added data set to the code cell.

  • The Run cell button is changed into the Interrupt cell icon while running the code.

  • Once the code has run successfully a checkmark appears below the Run cell icon.

  • The code result is displayed below it.

  • Another code cell gets added below (as shown in the following image).

  • Click the Save icon provided for the Notebook.

  • A notification message appears to indicate the completion of the action.

  • The Data Science Notebook's status gets changed as saved and the new updates get saved in it.

Various Options provided to a Code Cell

By clicking on an inserted Code cell, some code-related options are displayed as shown in the image:

Sl. No.
Icon
Name
Action

1

Move the cell up

Moves the cell upwards

2

Move the cell down

Moves the cell downwards

3

Delete Cell

Deletes the code cell.

4

More Actions

Opens four more actions that include:

Transform, Save Model, Predict, and Save artifact.

Please Note: The +Code, +Markdown, and +Assist options provided at the bottom of a cell insert a new cell after the given code/ Markdown cell.

Using a Code Cell