Skip to main content

doc

ReporTree: Nested HTML reports for Matplotlib

ReporTree produces nested static HTML reports with buttons to navigate through many nested pages.

Older version

The package can easily produce reports with many nested levels and hundreds of Matplotlib plots.

Basic example

import reportree as rt
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np


fig1, ax1 = plt.subplots()
sns.lineplot(x=np.arange(10), y=np.arange(10), marker='o', ax=ax1, color='red')
ax1.set_title('Upward')

fig2, ax2 = plt.subplots()
sns.lineplot(x=np.arange(10), y=np.arange(10, 0, -1), marker='o', ax=ax2, color='blue')
ax2.set_title('Downward')

l1 = rt.Leaf([fig1, fig2], title='Leaf example')
l1.save('/tmp/example1')

l2 = rt.Leaf(fig1, title='Only upward')
l3 = rt.Leaf(fig2, title='Only downward')

b1 = rt.Branch([l1, l2, l3], title='Branch example')
b1.save('/tmp/example2')

b2 = rt.Branch([rt.Branch([b1, l1]), l2, l3, b1], title='Nested example')
b2.save('/tmp/example3')

The code produces following reports:

Leaf example

Example 1

Branch example

Example 2

Nested example

Example 3

Metadata

Release files for reportree 0.0.9

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

Source distribution (sdist)

Source distribution for reportree 0.0.9
File Size Uploaded Provenance Actions
reportree-0.0.9.tar.gz 10.9 kB Without provenance Details for reportree-0.0.9.tar.gz

Built distribution (wheel)

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

Total release size: 22.9 kB

Release files / reportree-0.0.9.tar.gz

Download URL reportree-0.0.9.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
65ca4ea5b7550a334db0923cc476bf5d38b18b44c18ff29a10bfe808034bfad5
BLAKE2b-256 checksum
How to use checksums
4071c3996a3f41b227b0f5b8113d3a23423551f79b3521a8dc1e761b3b6a8dc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.7 Linux/6.11.4-arch2-1

Release files / reportree-0.0.9-py3-none-any.whl

Download URL reportree-0.0.9-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b2aa57389b7ce378ccbef89519af993ecba4d739217c61cb15839e56e6fd880
BLAKE2b-256 checksum
How to use checksums
579456c1ba90dfeaf124fa3d165ef2a43a95e654e0ca098c8d4956c6edff667e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.7 Linux/6.11.4-arch2-1

Security for reportree 0.0.9

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