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

Method unregister

IPython/core/events.py:85–90  ·  view source on GitHub ↗

Remove a callback from the given event.

(self, event: str, function: Callable[..., Any])

Source from the content-addressed store, hash-verified

83 self.callbacks[event].append(function)
84
85 def unregister(self, event: str, function: Callable[..., Any]) -> None:
86 """Remove a callback from the given event."""
87 if function in self.callbacks[event]:
88 return self.callbacks[event].remove(function)
89
90 raise ValueError('Function {!r} is not registered as a {} callback'.format(function, event))
91
92 def trigger(self, event: str, *args: Any, **kwargs: Any) -> None:
93 """Call callbacks for ``event``.

Callers 6

runMethod · 0.80
func1Method · 0.80
func2Method · 0.80
test_silent_postexecMethod · 0.80

Calls 2

removeMethod · 0.45
formatMethod · 0.45

Tested by 5

func1Method · 0.64
func2Method · 0.64
test_silent_postexecMethod · 0.64