Save HTML in plotly express

Hi All,

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

import plotly.express as px

ā€¦
ā€¦
ā€¦
fig.write_html(html_path)

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

Thanks

Hi @Karthika welcome to the forum! This stackoverflow question and answer should be helpful: https://stackoverflow.com/questions/59868987/plotly-saving-multiple-plots-into-a-single-html-python. In a nutshell use the full_html=False argument of fig.write_html to get only the div containing the figure.

Thank you @Emmanuelle !