MCPcopy Create free account
hub / github.com/ipython/ipython / enable

Method enable

IPython/lib/inputhook.py:598–621  ·  view source on GitHub ↗

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

(self, app=None)

Source from the content-addressed store, hash-verified

596@inputhook_manager.register('pyglet')
597class PygletInputHook(InputHookBase):
598 def enable(self, app=None):
599 """DEPRECATED since IPython 5.0
600
601 Enable event loop integration with pyglet.
602
603 Parameters
604 ----------
605 app : ignored
606 Ignored, it's only a placeholder to keep the call signature of all
607 gui activation methods consistent, which simplifies the logic of
608 supporting magics.
609
610 Notes
611 -----
612 This methods sets the ``PyOS_InputHook`` for pyglet, which allows
613 pyglet to integrate with terminal based applications like
614 IPython.
615
616 """
617 warn("This function is deprecated since IPython 5.0 and will be removed in future versions.",
618 DeprecationWarning, stacklevel=2)
619 from IPython.lib.inputhookpyglet import inputhook_pyglet
620 self.manager.set_inputhook(inputhook_pyglet)
621 return app
622
623
624@inputhook_manager.register('gtk3')

Callers

nothing calls this directly

Calls 1

set_inputhookMethod · 0.80

Tested by

no test coverage detected