MCPcopy Index your code
hub / github.com/marimo-team/marimo / ExecuteCellCommand

Class ExecuteCellCommand

marimo/_runtime/commands.py:224–247  ·  view source on GitHub ↗

Execute a single cell. Executes a cell with the provided code. Dependent cells may be re-executed based on the reactive execution mode. Attributes: cell_id: Cell to execute. code: Python code to execute. request: HTTP request context if available. timest

Source from the content-addressed store, hash-verified

222
223
224class ExecuteCellCommand(Command):
225 """Execute a single cell.
226
227 Executes a cell with the provided code. Dependent cells may be
228 re-executed based on the reactive execution mode.
229
230 Attributes:
231 cell_id: Cell to execute.
232 code: Python code to execute.
233 request: HTTP request context if available.
234 timestamp: Unix timestamp when command was created.
235 """
236
237 cell_id: CellId_t
238 code: str
239 # incoming request, e.g. from Starlette or FastAPI
240 request: HTTPRequest | None = None
241 timestamp: float = msgspec.field(default_factory=time.time)
242
243 def __repr__(self) -> str:
244 preview = self.code[:10].replace("\n", " ")
245 return (
246 f"ExecuteCellCommand(cell={self.cell_id}, code_preview={preview})"
247 )
248
249
250class ExecuteStaleCellsCommand(Command):

Callers 15

instantiateMethod · 0.90
__aexit__Method · 0.90
_apply_opsMethod · 0.90
sync_graphMethod · 0.90
runMethod · 0.90
instantiateFunction · 0.90
getMethod · 0.90
get_with_idMethod · 0.90
test_cache_missMethod · 0.90
test_cache_hitMethod · 0.90
test_cache_module_hitMethod · 0.90

Calls

no outgoing calls

Tested by 15

getMethod · 0.72
get_with_idMethod · 0.72
test_cache_missMethod · 0.72
test_cache_hitMethod · 0.72
test_cache_module_hitMethod · 0.72
test_cache_ui_hitMethod · 0.72
test_cache_ui_missMethod · 0.72
test_cache_one_lineMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…