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)
| 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 | |
| 310 | class InputHookBase(object): |
| 311 | """DEPRECATED since IPython 5.0 |
no test coverage detected