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

Method set_completer_frame

IPython/core/interactiveshell.py:2408–2415  ·  view source on GitHub ↗

Set the frame of the completer.

(self, frame=None)

Source from the content-addressed store, hash-verified

2406 self.Completer.custom_matchers.insert(pos,newcomp)
2407
2408 def set_completer_frame(self, frame=None):
2409 """Set the frame of the completer."""
2410 if frame:
2411 self.Completer.namespace = frame.f_locals
2412 self.Completer.global_namespace = frame.f_globals
2413 else:
2414 self.Completer.namespace = self.user_ns
2415 self.Completer.global_namespace = self.user_global_ns
2416
2417 #-------------------------------------------------------------------------
2418 # Things related to magics

Callers 1

mainloopMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected