Usage as Python library

Reportsrender provides a public API that can be used to execute and convert notebooks to HTML:

Execute and render notebooks as HTML reports.

render_rmd(input_file, output_file[, params])

Wrapper function to render an Rmarkdown document with the R rmarkdown package and convert it to HTML using pandoc and a custom template.

render_papermill(input_file, output_file[, …])

Wrapper function to render a jupytext/jupyter notebook with papermill and pandoc.

run_pandoc(in_file, out_file[, res_path, …])

Convert to HTML using pandoc.

build_index(html_files, output_file[, title])

Create an index file referencing all specified html files.