[IPython-dev] IPython notebook widgets for interactive matplotlib figures

Fernando Perez fperez.net at gmail.com
Tue Jul 29 16:41:36 EDT 2014


On Tue, Jul 29, 2014 at 1:06 PM, Antonino Ingargiola <tritemio at gmail.com>
wrote:

> Just my 2c: why don't providing an API function like "show_figure(False)".
> At this moment it will just call close(). In the future if you change
> implementation the API function will stay the same.


Not a bad idea... I'd like to mull a little bit on the cleanest way to do
this, but that's not a bad solution.

If nothing else, you can add that to your local utils for now, and see if
it works well enough.

def showfig(f):
  plt.close(f)
  display(f)

is easy enough to add at the top :)

Cheers

f


-- 
Fernando Perez (@fperez_org; http://fperez.org)
fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
fernando.perez-at-berkeley: contact me here for any direct mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140729/f2f113f9/attachment.html>


More information about the IPython-dev mailing list