docstr: DEPRECATED since IPython 5.0
  
  Enable event loop integration with pyglet.
  
  Parameters
  ----------
  app : ignored
     Ignored, it's only a placeholder to keep the call signature of all
     gui activation methods consistent, which simplifies the logic of
     supporting magics.
  
  Notes
  -----
  This methods sets the ``PyOS_InputHook`` for pyglet, which allows
  pyglet to integrate with terminal based applications like
  IPython.
code: def enable(self, app=None):
      """DEPRECATED since IPython 5.0
  
      Enable event loop integration with pyglet.
  
      Parameters
      ----------
      app : ignored
         Ignored, it's only a placeholder to keep the call signature of all
         gui activation methods consistent, which simplifies the logic of
         supporting magics.
  
      Notes
      -----
      This methods sets the ``PyOS_InputHook`` for pyglet, which allows
      pyglet to integrate with terminal based applications like
      IPython.
  
      """
      warn(
          "This function is deprecated since IPython 5.0 and will be removed in future versions.",
          DeprecationWarning,
          stacklevel=2,
      )
      from IPython.lib.inputhookpyglet import inputhook_pyglet
  
      self.manager.set_inputhook(inputhook_pyglet)
      return app
  
imports: import os
  import platform
  import sys
  from distutils.version import LooseVersion
  from warnings import warn
label_desc: Use image node_id 1 for calling the PygletInputHook obj's underlying member method code with example usage: obj.enable(app) and returns: app