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

Function register

IPython/terminal/pt_inputhooks/__init__.py:21–23  ·  view source on GitHub ↗

Register the function *inputhook* as an event loop integration.

(name, inputhook)

Source from the content-addressed store, hash-verified

19registered = {}
20
21def register(name, inputhook):
22 """Register the function *inputhook* as an event loop integration."""
23 registered[name] = inputhook
24
25class UnknownBackend(KeyError):
26 def __init__(self, name):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected