How to reduce the size of the HTML Markdown in Plotly python?


I came across this method called partial_bundle() in plotly R that reduces the HTML size of the plot from 3MB to 1MB (24 Improving performance | Interactive web-based data visualization with R, plotly, and shiny). I want the same functionality in python. How do i achieve it?

Any isights? please help!

You could try the following:

fig.write_html("thefilename.html",full_html=False, include_plotlyjs='cdn')

I dont want to save the plot to an html file. I just want to bundle less data, and serve the plot to dash