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

Function write_side_effect

marimo/_runtime/watch/_path.py:36–43  ·  view source on GitHub ↗

Write side effect to the context.

(data: str | bytes)

Source from the content-addressed store, hash-verified

34
35
36def write_side_effect(data: str | bytes) -> None:
37 """Write side effect to the context."""
38 try:
39 ctx = get_context()
40 except ContextNotInitializedError:
41 # Context is not initialized, nothing we can do
42 return
43 ctx.cell_lifecycle_registry.add(SideEffect(data))
44
45
46class PathState(State[Path]):

Callers 9

walkMethod · 0.90
iterdirMethod · 0.90
globMethod · 0.90
rglobMethod · 0.90
read_textMethod · 0.90
write_textMethod · 0.90
read_bytesMethod · 0.90
write_bytesMethod · 0.90
existsMethod · 0.85

Calls 3

get_contextFunction · 0.90
SideEffectClass · 0.90
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…