Python: Document results and figures into tex document

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!

Upvotes: 1

Views: 115

Answers (2)

thedarkgriffen
thedarkgriffen

Reputation: 414

Set echo to false before very code chunk, following the documentation: http://mpastell.com/pweave/defaults.html

Upvotes: 0

James K
James K

Reputation: 3742

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)

Upvotes: 1

Related Questions