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

Method disable_gui

IPython/lib/inputhook.py:295–308  ·  view source on GitHub ↗

DEPRECATED since IPython 5.0 Disable GUI event loop integration. If an application was registered, this sets its ``_in_event_loop`` attribute to False. It then calls :meth:`clear_inputhook`.

(self)

Source from the content-addressed store, hash-verified

293 return app
294
295 def disable_gui(self):
296 """DEPRECATED since IPython 5.0
297
298 Disable GUI event loop integration.
299
300 If an application was registered, this sets its ``_in_event_loop``
301 attribute to False. It then calls :meth:`clear_inputhook`.
302 """
303 warn("`disable_gui` is deprecated since IPython 5.0 and will be removed in future versions.",
304 DeprecationWarning, stacklevel=2)
305 gui = self._current_gui
306 if gui in self.apps:
307 self.apps[gui]._in_event_loop = False
308 return self.clear_inputhook()
309
310class InputHookBase(object):
311 """DEPRECATED since IPython 5.0

Callers 2

enable_guiMethod · 0.95
_deprecated_disableFunction · 0.80

Calls 1

clear_inputhookMethod · 0.95

Tested by

no test coverage detected