For further actions, you may consider blocking this person and/or reporting abuse
See why 4M developers consider Sentry, “not bad.”
Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.
Read next

Rails 7.1: Changes to $LOAD_PATH
Hassan Ahmed -

How to Integrate Vue.js with Existing React or Angular Projects Without Conflicts?
Anna Golubkova -

Git tips and tricks I use every day
Mark Hesketh -

The Ultimate Guide to Chart Types in Power BI
Kaira Kelvin. -
Top comments (3)
Do you want to embed the images on the page or just load the png? Something like this stackoverflow.com/questions/454601... could work for rendering the png. Otherwise, I would save the matplotlib graph to the png in your static files, then dynamically pass the file path to the template. You could do this within your models if that is how your app is structured. I would also highly recommend Bokeh to create fully interactive graphs Python!
I can also only highly recommend Bokeh having reviewed a few options (albeit back in 2015) when working on a previous project. We published a paper that outlines the pros and cons of the libraries that we ended up using. We went for Bokeh for load/rendering speed, active community and the fact that it had more documentation than Mpld3 another option you might want to consider.
Thank you ... I'll try both of them and see which is better for what I'm working on ...