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

Save HTML in plotly express

Hi All,

I am using the below function from plotly express to save the graphs in HTML file .

import as px


Would like to know is there any way to add multiple graphs in the same file ??


Hi @Karthika welcome to the forum! This stackoverflow question and answer should be helpful: In a nutshell use the full_html=False argument of fig.write_html to get only the div containing the figure.

Thank you @Emmanuelle !