How to output an svg with to_html method?

Hi!

I’m using plotly inside a jupyter notebook, and I noticed that if I use “display(HTML(plotly.show()))”, I get a HTML structure containing a svg and a javascript code to initialize the chart.

However, if I use plotly.to_html, I get a div with just the Javascript to initialize it.

Is it possible to get the svg that is returned on plotly.show while using plotly.to_html? I think I might be missing some parameter.

BR,