Skip to main content
https://zenodo.org/badge/doi/10.5281/zenodo.44683.svg https://travis-ci.org/mpastell/Pweave.svg?branch=master https://coveralls.io/repos/github/mpastell/Pweave/badge.svg?branch=master

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. It is able to run python code from source document and include the results and capture matplotlib plots in the output.

Pweave is good for creating reports, tutorials, presentations etc. with embedded python code It can also be used to make websites together with e.g. Sphinx or rest2web.

Features:

  • Python 3.4, 3.5 and 3.6 compatibility

  • Code is run using jupyter_client giving the possibility to run code using any installed kernel (including python2) via –kernel argument. Some chunk options only work for Python.

  • Support for IPython magics and rich output.

  • Produce reST, Sphinx, Latex, HTML and markdown (pandoc and leanpub) output from several input formats.

    • Noweb uses noweb syntax for separating code from documentation.

    • Markdown. Run code from markdown code blocks.

    • Script. Python script with special markup in comments.

  • 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 marked using <% %> and <%= %>.

  • 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.

  • Supports reST, LaTeX, HTML or markdown for document chunks

  • Publish reports from Python scripts. Similar to R markdown.

  • Run from command line or interpreter.

Install

From PyPi:

pip install --upgrade Pweave

with conda:

conda install -c conda-forge pweave

or download the source and run:

python setup.py install

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

Release Notes

See CHANGELOG.txt for changes in each release.

License information

See the file “LICENSE” for information on the history of this software, terms & conditions for usage, and a DISCLAIMER OF ALL WARRANTIES.

Metadata

Release files for Pweave 0.30.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Pweave 0.30.3
File Size Uploaded
Pweave-0.30.3.tar.gz 2.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for Pweave 0.30.3
File Interpreter ABI Platform
Pweave-0.30.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 2.3 MB

Release files / Pweave-0.30.3.tar.gz

Download URL Pweave-0.30.3.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
5e5298d90e06414a01f48e0d6aa4c36a70c5f223d929f2a9c7e2d388451c7357
BLAKE2b-256 checksum
How to use checksums
4d191d26e59f8928592062cfd4cd40084285be770b3a4735fff2aa38b97d1aaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Pweave-0.30.3-py2.py3-none-any.whl

Download URL Pweave-0.30.3-py2.py3-none-any.whl
Size 125.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
60cf8de680084b5423caa3a2131d4ff981c236f12f84f9d969a41f6632a44165
BLAKE2b-256 checksum
How to use checksums
ea223f6f05c64e24b8725af568ba4181883fb74785f91a64e5452f7ad2537e5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.30.3 This release

2 release files

0.30.1

2 release files

0.30

2 release files

0.25

2 release files

0.24

4 release files

0.23.2

1 release file

0.23.1

1 release file

0.23

1 release file

0.22.3

3 release files

0.22.2

5 release files

0.22.1

3 release files

0.22

5 release files

0.21.2

5 release files

0.21.1

5 release files

0.21

5 release files

0.20.1

5 release files

0.20

3 release files

0.13

1 release file

0.12

3 release files

0.11

0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page