def set_completer_frame(self, frame=None):
if frame:<EOL><INDENT>self.Completer.namespace = frame.f_locals<EOL>self.Completer.global_namespace = frame.f_globals<EOL><DEDENT>else:<EOL><INDENT>self.Completer.namespace = self.user_ns<EOL>self.Completer.global_namespace = self.user_global_ns<EOL><DEDENT>
Set the frame of the completer.