def cleanup(): GnuRL.cleanup() pass
# -*- coding: utf-8 -*- import IPython import GnuRL try: IPython.Shell.start().mainloop(sys_exit=False) finally: GnuRL.cleanup()
# -*- coding: utf-8 -*- import GnuRL console = GnuRL.RLWrapper() def cleanup(): GnuRL.cleanup() pass def parse_and_bind(string): console.parse_and_bind(string) pass def get_line_buffer(): return console.get_line_buffer() def read_init_file(filename): console.read_init_file(filename) pass def read_history_file(filename="~/.ipython/jhistory"): console.read_history_file(filename) pass def write_history_file(filename="~/.ipython/jhistory"): console.write_history_file(filename) pass def clear_history(): console.clearHistory() pass