MCPcopy Index your code
hub / github.com/ipython/ipython / get_local_scope

Method get_local_scope

IPython/core/interactiveshell.py:2544–2552  ·  view source on GitHub ↗

Get local scope at given stack depth. Parameters ---------- stack_depth : int Depth relative to calling frame

(self, stack_depth)

Source from the content-addressed store, hash-verified

2542 return result
2543
2544 def get_local_scope(self, stack_depth):
2545 """Get local scope at given stack depth.
2546
2547 Parameters
2548 ----------
2549 stack_depth : int
2550 Depth relative to calling frame
2551 """
2552 return sys._getframe(stack_depth + 1).f_locals
2553
2554 def run_cell_magic(self, magic_name, line, cell):
2555 """Execute the given cell magic.

Callers 1

run_line_magicMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected