Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/mpastell/Pweave

Pweave is a scientific report generator and a literate programming tool for Python. It can capture the results and plots from data analysis and works well with numpy, scipy and matplotlib.
https://github.com/mpastell/Pweave

jupyter python python3 reproducible-research scientific-reports

Last synced: 28 days ago
JSON representation

Pweave is a scientific report generator and a literate programming tool for Python. It can capture the results and plots from data analysis and works well with numpy, scipy and matplotlib.

Lists

README

        

.. image:: https://zenodo.org/badge/doi/10.5281/zenodo.44683.svg
:target: http://dx.doi.org/10.5281/zenodo.44683
.. image:: https://travis-ci.org/mpastell/Pweave.svg?branch=master
:target: https://travis-ci.org/mpastell/Pweave
.. image:: https://coveralls.io/repos/github/mpastell/Pweave/badge.svg?branch=master
:target: https://coveralls.io/github/mpastell/Pweave?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.