Layout python visualizations in HTML reports.
vizno
allows you to generate lightweight, portable and servable reports by laying out text and graphics together.
Check out the demonstration report for a demonstration of what it looks like, it's a single HTML file!
Installation¶
Install vizno with PyPI:
pip install vizno
Quick start¶
Create a python script my_report.py
:
from vizno.report import Report
r = Report(
title="Report title",
description="Here goes the report _description_.",
)
# Write your figure generating code here ...
f = ...
r.widget(f, title="Widget title", description="widget description")
At this point you have several options to generate the result.
Either:
- use the
vizno
CLI, and run a local HTTP serverbash vizno serve my_report.py
- use the
vizno
CLI to generate a standalone HTML and associated files todirectory
:bash vizno render reports/demo.py --output-dir directory
- programmatically write to the directory with a
r.render(output_dir)
statement and simply run the python filebash python reports/demo.py
Last update: December 3, 2020