Thanks for providing such useful module in python. It helps a lot in my work.
I used a lot with Plotly in my visualization analysis. I propose to use Plotly with redmail.
Demo code in my script:
"""
import plotly.graph_objects as go
def gen_plot():
fig = go.Figure()
image_io = BytesIO()
fig.write_image(image_io, format="png", engine='kaleido')
return image_io.getvalue()
"""
"""
body_images={"myplot': gen_plot()}
"""