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

Function stack_ipython

memory_graph/__init__.py:462–467  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

460 return ipython_locals_filter(get_locals_from_call_stack(1+stack_index))
461
462def stack_ipython(end_functions=["<module>"], stack_index=0):
463 """ Get the call stack in a ipython, filtering out the ipython specific keys. """
464 call_stack = stack(end_functions,1+stack_index)
465 globals_frame = next(iter(call_stack))
466 call_stack[globals_frame] = ipython_locals_filter(call_stack[globals_frame])
467 return call_stack
468
469# ------------ google colab filtering
470

Callers

nothing calls this directly

Calls 2

stackFunction · 0.85
ipython_locals_filterFunction · 0.85

Tested by

no test coverage detected