Set the frame of the completer.
(self, frame=None)
| 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 |