IPython Documentation

Table Of Contents

Previous topic

Module: kernel.zmq.parentpoller

Next topic

Module: kernel.zmq.pylab.config

This Page

Note

This documentation is for a development version of IPython. There may be significant differences from the latest stable release (1.2.1).

Module: kernel.zmq.pylab.backend_inline

A matplotlib backend for publishing figures via display_data

3 Functions

IPython.kernel.zmq.pylab.backend_inline.show(close=None)

Show all figures as SVG/PNG payloads sent to the IPython clients.

Parameters:

close : bool, optional

If true, a plt.close('all') call is automatically issued after sending all the figures. If this is set, the figures will entirely removed from the internal list of figures.

IPython.kernel.zmq.pylab.backend_inline.draw_if_interactive()

Is called after every pylab drawing command

IPython.kernel.zmq.pylab.backend_inline.flush_figures()

Send all figures that changed

This is meant to be called automatically and will call show() if, during prior code execution, there had been any calls to draw_if_interactive.

This function is meant to be used as a post_execute callback in IPython, so user-caused errors are handled with showtraceback() instead of being allowed to raise. If this function is not called from within IPython, then these exceptions will raise.