Пример #1
0
def load_ipython_extension(ip):
    try:
        from IPython.lib.editorhooks import mate
    except ImportError:
        ip.set_hook('editor', edit_in_textmate)
    else:
        mate()
Пример #2
0
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()")