As I discussed in How to embed matplotlib figure in html, sometime the return from different third-party tools are HTML. In order to merge different analysis into one, I use image as a media.
How to covert html to image?
- Install wkhtmltopdf,
- Install python package, imgkit
sudo apt-get install wkhtmltopdf
pip install imgkit
Then you can save HTML to image
import imgkit
imgkit.from_url('http://google.com', 'out.jpg')
imgkit.from_file('test.html', 'out.jpg')
Here is an example to show merged image of backtrader figure report and quantstats html report

FEATURED TAGS
AI
Fintech
OpenAI
Generative AI
LLM
Investment
Artificial Intelligence
Startups
AI Agents
AI Safety
AI Governance
Anthropic
Agentic AI
Enterprise AI
Singapore
AI Infrastructure
Open Source AI
AI Research
Quantum Computing
AI Security
Venture Capital
Cybersecurity
Tokenization
China AI
AI Regulation
Stablecoins
Digital Payments
Agentic
Compliance
Payments
Regulation
RWA
AI Policy
US AI
Economy
Banking