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

Method enable

IPython/lib/inputhook.py:626–647  ·  view source on GitHub ↗

DEPRECATED since IPython 5.0 Enable event loop integration with Gtk3 (gir bindings). Parameters ---------- app : ignored Ignored, it's only a placeholder to keep the call signature of all gui activation methods consistent, which simplifies the

(self, app=None)

Source from the content-addressed store, hash-verified

624@inputhook_manager.register('gtk3')
625class Gtk3InputHook(InputHookBase):
626 def enable(self, app=None):
627 """DEPRECATED since IPython 5.0
628
629 Enable event loop integration with Gtk3 (gir bindings).
630
631 Parameters
632 ----------
633 app : ignored
634 Ignored, it's only a placeholder to keep the call signature of all
635 gui activation methods consistent, which simplifies the logic of
636 supporting magics.
637
638 Notes
639 -----
640 This methods sets the PyOS_InputHook for Gtk3, which allows
641 the Gtk3 to integrate with terminal based applications like
642 IPython.
643 """
644 warn("This function is deprecated since IPython 5.0 and will be removed in future versions.",
645 DeprecationWarning, stacklevel=2)
646 from IPython.lib.inputhookgtk3 import inputhook_gtk3
647 self.manager.set_inputhook(inputhook_gtk3)
648
649
650clear_inputhook = inputhook_manager.clear_inputhook

Callers

nothing calls this directly

Calls 1

set_inputhookMethod · 0.80

Tested by

no test coverage detected