def enable(self, app=None):
""" Enable event loop integration with gevent.
Args:
app: 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 gevent, which allows
gevent greenlets to run in the background while interactively using
IPython.
"""
self.manager.set_inputhook(inputhook_gevent)
self._current_gui = GUI_GEVENT
return app
评论列表
文章目录