Skip to content

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.

743 B
Raw Blame
/* Copyright 2026 Marimo. All rights reserved. */

/**
 * Custom element tag names for islands
 */
export const ISLAND_TAG_NAMES = {
  ISLAND: "marimo-island",
  CELL_OUTPUT: "marimo-cell-output",
  CELL_CODE: "marimo-cell-code",
  CODE_EDITOR: "marimo-code-editor",
} as const;

export const ISLANDS_JSON_SCRIPT_TYPE = "application/vnd.marimo.islands+json";
export const ISLAND_SOURCE_CHANGED_EVENT = "marimo-island-source-changed";

/**
 * Data attributes for islands
 */
export const ISLAND_DATA_ATTRIBUTES = {
  APP_ID: "data-app-id",
  CELL_IDX: "data-cell-idx",
  CELL_ID: "data-cell-id",
  REACTIVE: "data-reactive",
} as const;

/**
 * CSS classes for islands
 */
export const ISLAND_CSS_CLASSES = {
  NAMESPACE: "marimo",
} as const;