MCPcopy Index your code
hub / github.com/ipython/ipython / _InputHook

Class _InputHook

IPython/terminal/pt_inputhooks/gtk4.py:8–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7
8class _InputHook:
9 def __init__(self, context):
10 self._quit = False
11 GLib.io_add_watch(
12 context.fileno(), GLib.PRIORITY_DEFAULT, GLib.IO_IN, self.quit
13 )
14
15 def quit(self, *args, **kwargs):
16 self._quit = True
17 return False
18
19 def run(self):
20 context = GLib.MainContext.default()
21 while not self._quit:
22 context.iteration(True)
23
24
25def inputhook(context):

Callers 1

inputhookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…