Skip to main content
HTML reporting for Pulse strategies. Exposes StrategyReport, a single class that bundles a strategy’s pulse.metrics.stats.Stats and a curated chart set into one Allasso-branded HTML document. See StrategyReport for usage.

StrategyReport

Render a self-contained, Allasso-branded HTML report for a strategy. Combines pulse.metrics.stats.Stats with the curated chart set (equity, monthly returns heatmap, trades history, greeks PnL decomposition) into a single HTML document. The instance is cheap to construct - rendering is deferred until the first to_html, save, show, or _repr_html_ call, and the result is memoised thereafter. Parameters Examples Save to disk:
Open in a browser tab:
Inline in Jupyter (the cell’s last expression):

StrategyReport.to_html

Render the report as an HTML string (memoised after first call). Returns

StrategyReport.save

Write the rendered report to path. Parameters Returns

StrategyReport.show

Open the rendered report in the default web browser. Writes the HTML to a temporary file and launches it via webbrowser.open. The temporary file is intentionally not deleted - the browser may need to read it after this method returns.

StrategyReport.__repr__

Return a short text summary - never the full HTML (terminal-safe).
Last modified on November 4, 2026