'DEPRECATED since IPython 5.0
Disable event loop integration with glut.
This sets PyOS_InputHook to NULL and set the display function to a
dummy one and set the timer to a dummy timer that will be triggered
very far in the future.'

def disable(self):

    warn('This    function    is    deprecated    since    IPython    5.0    and    will    be    removed    in    future    versions.', DeprecationWarning, stacklevel=2)
    import OpenGL.GLUT as glut
    from glut_support import glutMainLoopEvent
    glut.glutHideWindow()
    glutMainLoopEvent()
    super(GlutInputHook, self).disable()
