OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase AI DatabaseOceanBase Cloud OceanSeekOceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog ServiceOceanBase DataPilotOceanBase OAgent

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase AI DatabaseOceanBase Cloud OceanSeekOceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog ServiceOceanBase DataPilotOceanBase OAgent
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase DataPilot

V0.35.0
  • Learn about DataPilot
    • Learn about OceanBase DataPilot
    • Feature overview
    • Core features
    • Use cases
    • Product specifications and limitations
  • Get started
    • Quick start with core features
    • Create an Agent
  • Manage workspaces
    • Workspace overview
    • Analyze data sources and access
    • Model gateways and settings
    • Manage MCP tool services
  • Agent guide
    • Agent building and publishing
    • Knowledge asset management
    • Semantic Center
    • Query plans
    • Spreadsheet filling
    • Agent verification and testing
  • Analyst guide
    • Analysts using Agents and applications
    • Personal memory (My Memories)
  • Build data products
    • AI reports
    • Dashboard
    • Data screens
    • Smart tables
    • Workflow
    • Spatiotemporal analysis
    • Document classifier
    • Data Units notebook
  • System operations
    • System operations overview
    • Operations, audit, and task observability
    • Notifications and alerts
    • License management
    • O&M logs and diagnostics
  • Integration and extension
    • Embed SDK for integration
    • Open extension platform
  • Release notes
    • V0.35.0
    • V0.34.0
    • V0.33.1
    • V0.32.0
    • V0.31.0
    • V0.30.0
    • V0.29.0
    • V0.28.0
    • V0.27.0
    • V0.26.0
    • V0.25.0
    • V0.24.0
    • V0.23.0
    • V0.22.0
    • V0.21.0
    • V0.20.0
    • V0.19.0
    • V0.18.0
    • V0.17.0
    • V0.16.0
    • V0.15.0
    • V0.14.0
    • V0.13.0
    • V0.12.0
    • V0.11.0
    • V0.10.0
    • V0.9.0
    • V0.8.0
    • V0.7.0
    • V0.6.0
    • V0.5.0
    • V0.4.0

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase DataPilot
  3. V0.35.0

Data Units notebook

Last Updated:2026-11-20 12:50:52

Core concepts
Role definition
Generate a Notebook
View a Notebook
FAQ
What should I do after the AI generates a Notebook
How do I determine if the Notebook result is up to date

A data unit notebook organizes SQL, Python, Markdown, charts, and inputs into a runnable, reusable data processing workspace. Engineers can edit cells, run them in dependency order, save snapshots, and then integrate the results into downstream data applications. The success criteria are: clear cell dependencies, outputs reaching a stable final state, errors being traceable to specific nodes, and saved snapshots being reliably readable by subsequent processes.

Core concepts

Cells and Outputs: A cell is the smallest unit for editing and execution. Its type determines the input method and output format. Separating queries, calculations, descriptions, and charts allows you to check each step's result incrementally. First, select an appropriate cell type, then configure the input and output to avoid writing descriptive text into computation cells. For example, use SQL to read orders, Python to aggregate, and a chart cell to display trends.

Dependency Graphs and Snapshots: Dependency graphs represent the sequence of cell execution; snapshots preserve verified results. When upstream changes, the dependency graph indicates which results need recalculation; snapshots ensure downstream processes receive stable outputs. Saving a snapshot does not mean saving an unrun draft—only successful outputs are suitable as downstream inputs.

Role definition

Engineers are responsible for creating and running notebooks, fixing dependencies, and saving snapshots. Data and runtime permissions determine whether a cell is executable; space admin or support personnel handle external conditions such as data invisibility or runtime unavailability.

Generate a Notebook

Feature Access: Open Agent > Build > Data Units > Quick start > Notebook.

Usage instructions: The new creation dialog contains the following fields and options:

  • Name (required): Enter the notebook name, used to identify it in the Data Units list.
  • Manual: Directly create a blank notebook that you can edit later. Suitable for scenarios where you need to build code logic from scratch.
  • AI generate: Describe your requirements, and the agent will generate a notebook in a new dialog. Suitable for scenarios where you have clear analytical needs but want to quickly get a prototype.

After entering the name and selecting the creation method, click Start building to submit.

View a Notebook

Feature Access: Open Agent > Build > Data Units > Notebook List. The view page is divided into a top toolbar and a cell area, used for browsing content and performing operations.

Toolbar Usage Instructions:

  • Graph: View direct references and upstream/downstream dependencies.
  • Dependent apps: View related data units and cells.
  • Run: Execute the currently selected cell.
  • Clear Outputs: Clear the execution result of a cell.
  • Cell: Labeled with a tag (e.g., "Environment and Utility Functions") to indicate its purpose. Displays code content and supports folding; output after execution is displayed below the cell.

Cell Usage Instructions:

Insert a new cell above or below an existing cell, or copy and delete the current cell. Click the ellipsis menu button on the right side of a cell to expand the operation menu.

  • SQL: Adds an SQL query cell for reading data from the data source.
  • Python: Adds a Python code cell for data processing and computation.
  • Markdown: Adds a Markdown text cell for writing instructions and defining metrics.
  • Chart: Adds a chart cell for visualizing upstream output data.
  • Text Input: Adds a text input control for entering string parameters at runtime.
  • Number Input: Adds a number input control for entering numeric parameters at runtime.
  • Checkbox: Adds a checkbox control for setting boolean parameters at runtime.
  • Select: Adds a dropdown selection control for selecting values from a preset list at runtime.
  • Date: Adds a date selection control for selecting a specific date at runtime.
  • Duplicate Cell: Clones the content and configuration of the current cell to create a new cell of the same type.
  • Delete Cell: Permanently removes the current cell and all its content, which cannot be undone.

FAQ

What should I do after the AI generates a Notebook

After the AI generates an initial Notebook based on your requirement description in a new conversation, you still need to check the dependency relationships and data metrics of the cells. After running the validation output, save a snapshot.

How do I determine if the Notebook result is up to date

Check the "Last Run" timestamp below the title and compare it with the update time of the current data source. If the data source has been updated but the Notebook has not been rerun, you need to re-execute the cells in their dependency order and save a snapshot.

Previous topic

Document classifier
Last

Next topic

System operations overview
Next
on this page
Core concepts
Role definition
Generate a Notebook
View a Notebook
FAQ
What should I do after the AI generates a Notebook
How do I determine if the Notebook result is up to date