MCPcopy
hub / github.com/marimo-team/marimo / delete_cell

Method delete_cell

marimo/_code_mode/_context.py:1242–1256  ·  view source on GitHub ↗

Queue a cell for deletion. Examples: ```python ctx.delete_cell("scratch") # by name ctx.delete_cell("a1b2c3d4-...") # by cell ID ``` Args: target (str): Cell ID or cell name to delete.

(self, target: str)

Source from the content-addressed store, hash-verified

1240 )
1241
1242 def delete_cell(self, target: str) -> None:
1243 """Queue a cell for deletion.
1244
1245 Examples:
1246 ```python
1247 ctx.delete_cell("scratch") # by name
1248 ctx.delete_cell("a1b2c3d4-...") # by cell ID
1249 ```
1250
1251 Args:
1252 target (str): Cell ID or cell name to delete.
1253 """
1254 self._require_entered()
1255 cell_id = self._resolve_target(target)
1256 self._ops.append(_DeleteOp(cell_id=cell_id))
1257
1258 def move_cell(
1259 self,

Callers 1

_dry_run_compileMethod · 0.45

Calls 4

_require_enteredMethod · 0.95
_resolve_targetMethod · 0.95
_DeleteOpClass · 0.90
appendMethod · 0.45

Tested by

no test coverage detected