Get the call stack in a marimo, filtering out the marimo specific keys.
(end_functions=["<cell line: 0>", "<module>"], stack_index=0)
| 498 | return marimo_locals_filter(get_locals_from_call_stack(1+stack_index)) |
| 499 | |
| 500 | def 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 |
nothing calls this directly
no test coverage detected