def load_ipython_extension(ip): try: from IPython.lib.editorhooks import mate except ImportError: ip.set_hook('editor', edit_in_textmate) else: mate()
def load_ipython_extension(ip): try: from IPython.lib.editorhooks import mate except ImportError: ip.set_hook('editor', edit_in_textmate) else: mate() print("The editmate extension is obsolete, use:") print(" from IPython.lib.editorhooks import mate\n mate()")