def METHOD_NAME(self, arg):
    ipshell = embed.InteractiveShellEmbed(
        config=self.shell.config,
        banner1="*interactive*",
        exit_msg="*exiting interactive console...*",
    )
    global_ns = self.curframe.f_globals
    ipshell(
        module=sys.modules.get(global_ns["__name__"], None),
        local_ns=self.curframe_locals,
    )