Hi,

First - thank you - it makes my heart very glad to be able to do this:

.. plot::
    :include-source:

    import matplotlib.pyplot as plt
    plt.plot(range(10))
    plt.show()

Here's my question.   This is already a huge step forward for me, but
the full monty would be to be able to do:

.. testcode::

   import some_module
   res = some_module.use_it('a string')

.. plot::
    :include-source:

    plt.imshow(res)

and so on.  I mean, the ability to keep the code context across the
page, both in the ..plot: and ..testcode:: and even >>> directives, so
I can build up my tutorial examples on top of the previous results.
That step would make it the perfect tool for the tutorials that I have
ready to port - and I am sure - many others.

Is that already possible?  If not, how easy would it be?  It if isn't
easy, can y'all give me some pointers as to how to get there?

Thanks again,

Matthew

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to