Python: Document results and figures into tex document
<p>I currently have written a script that produces several figures. I was wondering if there is a way to publish these figures directly into a tex file, say in eps format without including all of the python code verbatim. I also want to include the values of some variables. I looked at the module pweave (<a href="http://mpastell.com/pweave/" rel="nofollow">http://mpastell.com/pweave/</a>) but I couldn't figure out a way to exclude code chunks. I'm new to python so any help would be much appreciated!</p>

<p>You can use pweave. If you want a code chunk to be executed but not formatted, set the echo property to false. See 
<a href="http://mpastell.com/pweave/chunks.html#envvar-echo=Trueor(False)" rel="nofollow">http://mpastell.com/pweave/chunks.html#envvar-echo=Trueor(False)</a></p>

python documentation pweave