Skip to main content

Scientific reports with embedded python computations with reST, LaTeX or markdown

Project description

About Pweave

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. Pweave is inspired by Sweave, an excellent tool for R programmers, and the syntax is mostly compatible with it.

Pweave uses the noweb syntax for separating code from documentation, but it also supports ERB style evaluation of inline code. Pweave is able to weave a python code between <<>>= and @ blocks and include the results and capture matplotlib plots in the document. Inline code in documentation chunks is marked using <% %> (code will be evaluated in place) and <%= %> (result of expression will be printed) tags. Pweave supports reST, Sphinx, Latex, and Pandoc markdown markups. Pweave is good for creating 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 output to a report.

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

  • Capture matplotlib graphics.

  • Evaluate inline code in documentation chunks

  • Cache all code and results from previous runs for fast report generation when you are only working with documentation. Inline code will be hidden in documentation mode.

  • Run from command line or interpreter

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 Distributions

Pweave-0.20.zip (11.8 kB view details)

Uploaded Source

Pweave-0.20.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

Pweave-0.20.win32.exe (208.7 kB view details)

Uploaded Source

File details

Details for the file Pweave-0.20.zip.

File metadata

  • Download URL: Pweave-0.20.zip
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Pweave-0.20.zip
Algorithm Hash digest
SHA256 4c46ec13c5002ce6b6ad8fbfeea438b73c60f1d0d13059fb861f073f0351ce6f
MD5 7490347d36044ddd9824627b0858f09f
BLAKE2b-256 eddaa5b2657a0a876d678bca03aa751ee5432fdc147be52c2bcf1ebb1fda7e88

See more details on using hashes here.

File details

Details for the file Pweave-0.20.tar.gz.

File metadata

  • Download URL: Pweave-0.20.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Pweave-0.20.tar.gz
Algorithm Hash digest
SHA256 eb83f3acbfd2ae3d950dd59210beb1d92cc444a34e36ba70aa894b4642031a79
MD5 e4f5c513ff09291855b9eab4cde6f591
BLAKE2b-256 91a7da1e20d16dca041247a75a0f91f78b4368e823195c42fde29b8788a2a3b7

See more details on using hashes here.

File details

Details for the file Pweave-0.20.win32.exe.

File metadata

  • Download URL: Pweave-0.20.win32.exe
  • Upload date:
  • Size: 208.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Pweave-0.20.win32.exe
Algorithm Hash digest
SHA256 9931c7665e08fea51ebc11dc6d2f0f9803788eea69af203cbbe413760c7dd270
MD5 164bdeb7427c78da8128ae5177988352
BLAKE2b-256 d82153a166c90f3c95c700c44dfd56d5527a6632fe2287e45f5978c6ca8fa8ae

See more details on using hashes here.

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