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.

chore: rename cell_manager TransactionSource to cell-manager (#9459)

Kiran Gadhave06e300ea990a
diff --git a/marimo/_ast/app.py b/marimo/_ast/app.py
index 66a6e027ae..4cbc6000f4 100644
--- a/marimo/_ast/app.py
+++ b/marimo/_ast/app.py
@@ -185,7 +185,7 @@ class _SetupContext:
changes=(
SetConfig(cell_id=cm.setup_cell_id, hide_code=hide_code),
),
- source="cell_manager",
+ source="cell-manager",
)
)
self._cell._cell.configure({"hide_code": hide_code})
diff --git a/marimo/_ast/cell_manager.py b/marimo/_ast/cell_manager.py
index 314887d836..19f34b3b9c 100644
--- a/marimo/_ast/cell_manager.py
+++ b/marimo/_ast/cell_manager.py
@@ -229,7 +229,7 @@ class CellManager:
config=resolved_config,
),
),
- source="cell_manager",
+ source="cell-manager",
)
)
self._compiled_cells[cell_id] = cell
diff --git a/marimo/_messaging/notebook/changes.py b/marimo/_messaging/notebook/changes.py
index 0c21c25ad0..f4e5e8ed03 100644
--- a/marimo/_messaging/notebook/changes.py
+++ b/marimo/_messaging/notebook/changes.py
@@ -99,7 +99,7 @@ DocumentChange = (
# ------------------------------------------------------------------
TransactionSource = Literal[
- "frontend", "kernel", "code-mode", "file-watch", "cell_manager"
+ "frontend", "kernel", "code-mode", "file-watch", "cell-manager"
]
diff --git a/packages/openapi/api.yaml b/packages/openapi/api.yaml
index d0b3b131e3..ba8e4b44ea 100644
--- a/packages/openapi/api.yaml
+++ b/packages/openapi/api.yaml
@@ -5054,7 +5054,7 @@ components:
type: array
source:
enum:
- - cell_manager
+ - cell-manager
- code-mode
- file-watch
- frontend
diff --git a/packages/openapi/src/api.ts b/packages/openapi/src/api.ts
index 2f06350619..9bc9405fb7 100644
--- a/packages/openapi/src/api.ts
+++ b/packages/openapi/src/api.ts
@@ -6433,7 +6433,7 @@ export interface components {
)[];
/** @enum {unknown} */
source:
- | "cell_manager"
+ | "cell-manager"
| "code-mode"
| "file-watch"
| "frontend"