Skip to main content

Literate programming with reST or LaTeX in Sweave style

Project description

About Pweave

Pweave is a literate programming tool for Python that is developed after Sweave. Like Sweave it uses the noweb syntax. Pweave is a single python script that is able to weave a python code between <<>>= and @ blocks and include the results in the document. Additionally it can capture matplotlib figures. It supports reST, Sphinx and Latex markup. Pweave is good for creating dynamic reports and tutorials. It can also be used to make websites together with Sphinx or rest2web.

Features:

  • Execute python code in the chunks and capture input and ouput to a literate environment using either reStructuredText or Latex source. Using reST enables conversion of the documents to several formats (html, latex, pdf, odt).

  • Use hidden code blocks, i.e. code is executed, but not printed in the output file.

  • Capture matplotlib graphics.

  • Tested with: Linux, Mac OS X, Windows Python 2.6.

Install:

With easy_install::

easy_install -U Pweave

Or download the source package and run::

python setup.py install

Documentation

Pweave documentation can be found from the website http://mpastell.com/pweave

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Pweave-0.13.tar.gz (4.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page