[IPython-dev] interactive matplotlib via comm infrastructure
Fernando Perez
fperez.net at gmail.com
Wed Nov 20 01:33:06 EST 2013
Hi Jason,
this is great news! Very much looking forward to seeing this work its way
into master for both projects, and eventually likely to become the
standard. Very happy to see that all the time we put into the design of
the comm machinery is paying off.
Cheers,
f
On Fri, Nov 15, 2013 at 6:07 AM, Jason Grout <jason-sage at creativetrax.com>wrote:
> I should probably have cross-posted this:
> http://sourceforge.net/mailarchive/message.php?msg_id=31640342
>
> Following a very helpful conversation with Michael yesterday in the
> dev hangout, I got the interactive matplotlib working with the current
> master (of matplotlib and ipython).
>
> I updated the pull request at
> https://github.com/matplotlib/matplotlib/pull/2524
>
> To test this, run IPython (master branch, to get the comm commits), and
> put this in a cell:
> https://github.com/matplotlib/matplotlib/pull/2524#issuecomment-28539813
>
> Then you can execute something like:
>
> from matplotlib.figure import Figure
> import numpy as np
> fig = Figure()
> a = fig.add_subplot(111)
> t = np.arange(0.0, 3.0, 0.01)
> s = np.sin(2 * np.pi * t)
> a.plot(t, s)
> CommFigure(fig)
>
> and get a live figure in the IPython notebook that uses the comm
> messaging infrastructure.
>
> I also got this working in the Sage cell server:
>
> http://sagecell.sagemath.org/?q=ilpajg (for a sage plotting example)
>
> http://sagecell.sagemath.org/?q=spadja (for one of the examples from the
> matplotlib docs)
>
> Thanks again for everyone's work on the comm infrastructure!
>
> Jason
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
--
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/20131119/55667513/attachment.html>
More information about the IPython-dev
mailing list