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.
