Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Python & HTML rendering

 Hi

 

I have read the blog https://powerbi.microsoft.com/en-us/blog/pythonblogepisode1/

 

I was wondering if there is any progress in the rendering of HTML, saving as a png is not really a solution. 

 

Thanks 

4 REPLIES 4
Anonymous
Not applicable

 Hi

 

I have read the blog https://powerbi.microsoft.com/en-us/blog/pythonblogepisode1/

 

I was wondering if there is any progress in the rendering of HTML, saving as a png is not really a solution. 

 

Thanks 

v-juanli-msft
Community Support
Community Support

Hi @Anonymous

Would you want to convert HTML to an image in PYTHON?

Please find the answer here: https://stackoverflow.com/questions/5633828/convert-html-to-an-image-in-python

 

Best Regards

Maggie

Hi,

Have you managed to come with a POC so far? If so, it would be interesting to share a sample so we could have a look at it. I agree it may not be the best option, but at this stage, being able to add a sort of  a "HTML convert as an image"... step in the code may be a temporary solution. Thank you. 

Anonymous
Not applicable

Hi Maggie

 

Thank you for the reply.

 

What I really want to know is how long untill Microsoft develop support for Python packages that render output in HTML? The blog I quoted makes out it is work in progress towards this.

 

I want to display an interactive HTML in PowerBI, and it is a big file. You can see it in the link below. Would the png solution maintain full interactivity? If so sorry I hadnt realised png has such power! If it does I cant get that solution to work, I noticed its written for OSX and there seems to be some Linux support but I am using Windows and Python 3, assuming that might be my problem but could be wrong. There has not been any commits to webkit2png since feb 2015 & so its hard to find a solution - I feel like I'm burrowing into a rabit hole trying.

 

https://www.scottcharlesworth.com/Freelance/wp-content/uploads/2018/11/trade_map_.html

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.