On Wed, Sep 15, 2010 at 12:39 AM, Fernando Perez <fperez....@gmail.com>wrote:
> On Tue, Sep 14, 2010 at 12:57 PM, Benjamin Root <ben.r...@ou.edu> wrote:
> >
> > Why not have an examples module that contains function calls to each
> > example? On the website, we can show the source code, but also say that
> one
> > could just do:
> >
> >>>> import matplotlib.examples as ex
> >>>> ex.bars3d_demo()
>
> The idea is to have the *actual code* pasted in your terminal, because
> now we can easily edit complex multi-line examples directly in
> ipython. So it's not just a matter of seeing the figure results, but
> mostly of having the actual source in your input buffer to play with.
>
> Cheers,
>
> f
>
True... but, consider this. ipython can already display the code for a
particular module/function using the '??' idiom. Why not have some way to
take that text and bring it into the input buffer?
I can imagine this being useful beyond matplotlib where anybody could have
their example codes easily accessed and edited.
Ben Root
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel