MCPcopy Create free account
hub / github.com/bterwijn/memory_graph / stack_marimo

Function stack_marimo

memory_graph/__init__.py:500–505  ·  view source on GitHub ↗

Get the call stack in a marimo, filtering out the marimo specific keys.

(end_functions=["<cell line: 0>", "<module>"], stack_index=0)

Source from the content-addressed store, hash-verified

498 return marimo_locals_filter(get_locals_from_call_stack(1+stack_index))
499
500def stack_marimo(end_functions=["<cell line: 0>", "<module>"], stack_index=0):
501 """ Get the call stack in a marimo, filtering out the marimo specific keys. """
502 call_stack = stack(end_functions,1+stack_index)
503 globals_frame = next(iter(call_stack))
504 call_stack[globals_frame] = marimo_locals_filter(call_stack[globals_frame])
505 return call_stack
506
507# ------------ extensions
508

Callers

nothing calls this directly

Calls 2

stackFunction · 0.85
marimo_locals_filterFunction · 0.85

Tested by

no test coverage detected