Pweave is a scientific report generator and a literate programming
tool for Python. Pweave can capture the results and plots from data
analysis and works well with NumPy, SciPy and matplotlib. It is able to run
python code from source document and include the results and capture
matplotlib plots in the output.

It can produce reST, Sphinx, Latex, HTML and markdown (pandoc and leanpub)
output from several input formats.