'DEPRECATED since IPython 5.0
Disable event loop integration with wxPython.
This restores appnapp on OS X'

def disable(self):

    warn('This    function    is    deprecated    since    IPython    5.0    and    will    be    removed    in    future    versions.', DeprecationWarning, stacklevel=2)
    if _use_appnope():
        from appnope import nap
        nap()
