Skip to main content

Generate reproducible reports from Rmarkdown or jupyter notebooks

Build Status Documentation Status The uncompromising python formatter

Reportsrender allows to create reproducible, consistently looking HTML reports from both jupyter notebooks and Rmarkdown files. It makes use of papermill and Rmarkdown to execute notebooks and uses Pandoc to convert them to HTML.

Features:
  • two execution engines: papermill and Rmarkdown.

  • support any format supported by jupytext.

  • create self-contained HTML that can be shared easily.

  • hide inputs and/or outputs of cells.

  • parametrized reports

See the documentation for more details!

Getting started

  • Execute an rmarkdown document to HTML using the Rmarkdown engine

reportsrender rmd my_notebook.Rmd report.html
  • Execute a parametrized jupyter notebook with papermill

reportsrender papermill jupyter_notebook.ipynb report.html --params="data_file=table.tsv"

TODO add example notebooks.

Usage from command line

reportsrender

Execute and render a jupyter/Rmarkdown notebook.

Usage:
  reportsrender <notebook> <out_file> [options]
  reportsrender --help

Options:
  -h --help             Show this screen.
  --cpus=<cpus>         Number of CPUs to use for Numba/Numpy/OpenBLAS/MKL [default: 1]
  --params=<params>     space-separated list of key-value pairs that will be passed
                        to papermill/Rmarkdown.
                        E.g. "input_file=dir/foo.txt output_file=dir2/bar.html"
  --engine=<engine>     Engine to execute the notebook. [default: auto]

Possible engines are:
    auto            Use `rmd` engine for `*.Rmd` files, papermill otherwise.
    rmd             Use `rmarkdown` to execute the notebook. Supports R and
                    python (through reticulate)
    papermill       User `papermill` to execute the notebook. Works for every
                    kernel available in the jupyter installation.

Installation

Manual install:

Get dependencies:

For the Rmarkdown render engine additionally:

  • R and the following packages:

rmarkdown
reticulate

Install from github:

pip install flit
flit installfrom github:grst/reportsrender

Metadata

Release files for reportsrender 0.2.1

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

Source distribution (sdist)

Source distribution for reportsrender 0.2.1
File Size Uploaded Provenance Actions
reportsrender-0.2.1.tar.gz 169.6 kB Without provenance Details for reportsrender-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reportsrender 0.2.1
File Interpreter ABI Platform Actions
reportsrender-0.2.1-py3-none-any.whl Python 3 none any Details for reportsrender-0.2.1-py3-none-any.whl

Total release size: 531.0 kB

Release files / reportsrender-0.2.1.tar.gz

Download URL reportsrender-0.2.1.tar.gz
Size 169.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7b50c10e56a4df4e890221b8af40daed0a1a4e00f3b5e554c78977742c9c8681
BLAKE2b-256 checksum
How to use checksums
114e6b34df5c85723d97103d5600aea9c1b5877cd81c4a379ec583830ce39cb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.22.0

Release files / reportsrender-0.2.1-py3-none-any.whl

Download URL reportsrender-0.2.1-py3-none-any.whl
Size 361.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3a47524f7237c6154064ca1cc39a79cc61a9098dc51354daf0f69c78b8cdc9c
BLAKE2b-256 checksum
How to use checksums
67cf5e2dcfc0a12f47130c79146f13c62bed90503bc9e97897391a8aa4c651ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.22.0

Security for reportsrender 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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