MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _allow_interrupt_macos

Function _allow_interrupt_macos

lib/matplotlib/backends/backend_macosx.py:18–21  ·  view source on GitHub ↗

A context manager that allows terminating a plot by sending a SIGINT.

()

Source from the content-addressed store, hash-verified

16
17
18def _allow_interrupt_macos():
19 """A context manager that allows terminating a plot by sending a SIGINT."""
20 return _allow_interrupt(
21 lambda rsock: _macosx.wake_on_fd_write(rsock.fileno()), _macosx.stop)
22
23
24class FigureCanvasMac(FigureCanvasAgg, _macosx.FigureCanvas, FigureCanvasBase):

Callers 2

start_event_loopMethod · 0.85
start_main_loopMethod · 0.85

Calls 1

_allow_interruptFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…