A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
/* Copyright 2026 Marimo. All rights reserved. */
import type { CellId } from "@/core/cells/ids";
import { HTMLCellId } from "@/core/cells/ids";
/**
* Create DOM properties for a cell.
*
* Returns:
* - `data-cell-id` - The ID of the cell.
* - `data-cell-name` - The name of the cell.
* - `id` - The ID of the cell.
*/
export function cellDomProps(cellId: CellId, cellName: string) {
return {
"data-cell-id": cellId,
"data-cell-name": cellName,
id: HTMLCellId.create(cellId),
};
}