Black Lives Matter. Please consider donating to Black Girls Code today.

Thinning Out Data for Offline Mode

I’m using the Python API to read data from a database and generate multiple

tags to be embedded in an html report. The html file size is approaching 50MB, which slows down browsers. Is there a common method or best practice to minimize the volume of data embedded in
without compromising the accuracy of the plots? In my case, the plots are (for now) all violin & rug plots. I’m hoping there’s a way to retain the shape of the violin plot while reducing the size of the html.