How to output an svg with to_html method?


I’m using plotly inside a jupyter notebook, and I noticed that if I use “display(HTML(”, 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 while using plotly.to_html? I think I might be missing some parameter.