Skip to main content
StrategyReport bundles a finished strategy’s Stats grid, the curated chart set (equity, monthly returns heatmap, trades history, greeks PnL decomposition), and a scrollable trades table into one self-contained, Allasso-branded HTML document.

Build and save

StrategyReport accepts a finished Strategy or an ExecutionResult (the wrapper returned by run_sequentially); if you pass an ExecutionResult it pulls .strategy out for you:
Construction is cheap; rendering is deferred until the first to_html, save, show, or inline display, then memoised. The methods:
  • to_html() -> str - the full HTML document as a string.
  • save(path) - write it to disk; returns the Path.
  • show() - render and open it in a browser tab.

Inline in Jupyter

StrategyReport implements _repr_html_, so making it the last expression in a cell renders it inline:

Choosing a plotly_mode

plotly_mode controls how Plotly.js is delivered into the document. Pass it as a keyword:
Pick inline for anything you send to someoneA "cdn" report shows blank charts without a network connection. For a file that has to render anywhere, use "inline"; accept the larger size as the price of portability.
For the numbers in the stats grid and how returns are summarised, see Metrics and Stats. Related: Metrics and Stats · Reading results · Charts
Last modified on November 4, 2026