Manage analysis units

更新时间:
复制 MD 格式

In DataV-Note, projects run on a Notebook kernel. A kernel is a collection of the runtime environment and resources for a project. An analysis unit is the primary area where you edit analysis reports. This topic describes how to manage kernels and analysis units on the project editing page.

Prerequisites

You have created an analysis unit. For more information, see Analysis unit types.

Go to the project editing page

  1. Log on to the DataV-Note console.

  2. On the All Projects > All tab, hover over the target project and click Edit to open the project editor.

    On this page, you can view the kernel status, run analysis units, and manage analysis units as needed.

Kernel status and management

DataV-Note provides a kernel environment to run your analysis code. On the project editing page, you can view the kernel's status, version, and CPU and memory utilization. You can also perform management operations on the kernel.

Note

High CPU and memory utilization in the kernel can affect system performance. Use resources efficiently by deleting idle projects or optimizing configurations as needed.

Kernel status

The following table describes the kernel statuses.

Status

Description

Kernel ready

The kernel is in a normal state and can run the project.

Kernel not started

You must start the kernel manually. If the manual startup fails, contact the helpdesk.

Kernel starting

The kernel is starting. This process takes about 2 minutes. After the kernel starts, its status changes to Kernel ready, and the project can run.

  • Kernel stopped

  • Kernel stopping

  • Kernel startup failed

  • Kernel not connected

  • Kernel connection abnormal

If the kernel is in one of these states, the project cannot run. Try to restart the kernel. If the restart fails, contact the helpdesk.

Kernel management

You can perform the following management operations based on the status of the kernel or analysis units:

  • Stop running: Stop all running analysis units in a batch.

  • Stop kernel: If a project runs for a long time, you can stop the kernel to prevent resource accumulation.

  • Restart kernel: If an error occurs when a project runs, you can restart the kernel to try to recover it.

Run analysis units

Note

You can run only executable analysis units, such as SQL and Python units. The Run button appears in the upper-right corner of the editing page for these units.

Run a single analysis unit

In the upper-right corner of the analysis unit editing page, click Run. You can run the current analysis unit or the current unit and its associated upstream and downstream units.

Run analysis units in a batch

In the upper-right corner of the project editing page, you can run all analysis units or only the selected analysis units in the current project.

Manage analysis units

Manage in the report editing area

The following procedure uses an SQL analysis unit as an example to describe common management operations in the report editing area.

Note

Operations vary for different types of analysis units. For more information about analysis units, see Analysis unit types.

  1. Create an analysis unit of the required type.

  2. Rename the analysis unit.

  3. Expand or collapse the code or analysis results.

  4. Click the image or image icon to show or hide the current analysis unit in Preview mode. Click the image icon to move or delete the current analysis unit.

    Important

    The delete operation cannot be undone. Proceed with caution.

  5. You can change the name or type of a query result set, view its references, create an SQL analysis based on it, or display it as a chart.

Manage in the content list

On the left side of the project editing page, click the image icon to open the content list. This area displays a list of all analysis units created in the current project, such as SQL, Python code, text, visualization charts, and controls. You can locate a specific analysis unit and perform the following management operations.

  • Filter analysis units: Click All to filter and view analysis units of a specific type.

  • Locate an analysis unit: Click the name of a target analysis unit to go to its editing page and perform editing operations.

    Note

    Features vary for different types of analysis units. The actual interface may vary.

  • Adjust the order of analysis units: Click and drag an analysis unit to change its position in the list.

  • Hide an analysis unit in preview mode: Hover over the name of an analysis unit and click the image icon to hide it in preview mode. When you preview the report, the hidden unit is not visible. An analysis unit is hidden in preview mode if it shows the image icon.

  • Delete an analysis unit: Hover over the name of an analysis unit and click the image icon to delete it.

    Important

    The delete operation cannot be undone. Proceed with caution.