matplotlib.backends.backend_nbagg
Interactive figures in the IPython notebook.
- class matplotlib.backends.backend_nbagg.CommSocket(manager)
Bases:
objectManages the Comm connection between IPython and the browser (client).
Comms are 2 way, with the CommSocket being able to publish a message via the send_json method, and handle a message with on_message. On the JS side figure.send_message and figure.ws.onmessage do the sending and receiving respectively.