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

Function add_binding

IPython/terminal/shortcuts/__init__.py:321–325  ·  view source on GitHub ↗
(bindings: KeyBindings, binding: Binding)

Source from the content-addressed store, hash-verified

319
320
321def add_binding(bindings: KeyBindings, binding: Binding):
322 bindings.add(
323 *binding.keys,
324 **({"filter": binding.filter} if binding.filter is not None else {}),
325 )(binding.command)
326
327
328def create_ipython_shortcuts(shell, skip=None) -> KeyBindings:

Callers 2

_merge_shortcutsMethod · 0.85
create_ipython_shortcutsFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…