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 (http://mpastell.com/pweave/) but I couldn't figure out a way to exclude code chunks. I'm new to python so any help would be much appreciated!
You can use pweave. If you want a code chunk to be executed but not formatted, set the echo property to false. See http://mpastell.com/pweave/chunks.html#envvar-echo=Trueor(False)