Skip to main content

Execute and Render notebooks as HTML reports.

Project description

Generate reproducible reports from Rmarkdown or jupyter notebooks

Build Status Documentation Status

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

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

reportsrender-0.1.tar.gz (102.7 kB view details)

Uploaded Source

Built Distribution

reportsrender-0.1-py3-none-any.whl (359.4 kB view details)

Uploaded Python 3

File details

Details for the file reportsrender-0.1.tar.gz.

File metadata

  • Download URL: reportsrender-0.1.tar.gz
  • Upload date:
  • Size: 102.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for reportsrender-0.1.tar.gz
Algorithm Hash digest
SHA256 cbc4e1f72de5dc6c2a737bd6256405c93579f2bc96dc74392fbd870e21dcc1d8
MD5 260d46f3225cd2666356d18dc95b4749
BLAKE2b-256 f554a932ad4b0abf300f241122261cdbbf49f9c91611d48d68ac5e1723e5d51a

See more details on using hashes here.

File details

Details for the file reportsrender-0.1-py3-none-any.whl.

File metadata

  • Download URL: reportsrender-0.1-py3-none-any.whl
  • Upload date:
  • Size: 359.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for reportsrender-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e194bfa3a1a8826912f14d4530bdb6f67c3bf7d5a2090a4e5d96f167caab091d
MD5 d80d9d9513401eeb4cf735fc54ebfc07
BLAKE2b-256 9cc7aa2da4591f9381c4f63cb26b0e22922379269afbbaadf8a1a0ec60e6d691

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