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

Function locals_ipython

memory_graph/__init__.py:458–460  ·  view source on GitHub ↗

Get the locals of the calling frame in a ipython, filtering out the ipython specific keys.

(stack_index=0)

Source from the content-addressed store, hash-verified

456 if k not in ipython_filter_keys and k[0] != '_'}
457
458def locals_ipython(stack_index=0):
459 """ Get the locals of the calling frame in a ipython, filtering out the ipython specific keys. """
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. """

Callers

nothing calls this directly

Calls 2

ipython_locals_filterFunction · 0.85

Tested by

no test coverage detected