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

Method on_close

lib/matplotlib/backends/backend_nbagg.py:202–210  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200 return not (self._ext_close or self.comm._closed)
201
202 def on_close(self):
203 # When the socket is closed, deregister the websocket with
204 # the FigureManager.
205 if self.is_open():
206 try:
207 self.comm.close()
208 except KeyError:
209 # apparently already cleaned it up?
210 pass
211
212 def send_json(self, content):
213 self.comm.send({'data': json.dumps(content)})

Callers 3

on_messageMethod · 0.95
destroyMethod · 0.45
__init__Method · 0.45

Calls 2

is_openMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected