Greyscale reconstruction and merging CellProfiler code

Tony Yu tsyu80 at gmail.com
Tue Aug 9 09:50:04 EDT 2011


2011/8/8 Stéfan van der Walt <stefan at sun.ac.za>

>
> Here we go (I had the projects mixed up):
>
> https://github.com/nipy/nitime/tree/master/doc/examples
>
> There's also a tools directory that show how they are converted.  It's
> a quick hack, but it does the job!
>

In case anyone else is following this discussion, here's a specific example.

This python file:
https://github.com/nipy/nitime/blob/master/doc/examples/multi_taper_coh.py

is rendered like this:
http://nipy.sourceforge.net/nitime/examples/multi_taper_coh.html

And here's the script that does most of the work generating rst from py
files:
https://github.com/nipy/nitime/blob/master/tools/ex2rst


Should we adopt something like that for now?
>

I really like this approach. As I mentioned earlier, being able to run the
example code directly (instead of having to build the docs to run the code)
is a huge plus for me. One thing I like about ipython_directive: they define
a "savefig" decorator which saved the current figure and generated rst to
add the image. I presume a similar function can be defined for this approach
(but I'm not sure I'd miss this feature enough to write the code myself).

Cheers,
-Tony

P.S. Stéfan: were you able to build the tutorial on my "reconstruction"
branch?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20110809/01d69391/attachment.html>


More information about the scikit-image mailing list