✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🧬 Learn how to build RNA-Seq data apps with Python & Dash. Register for the May 20 Webinar!

Generate html file, but not display it

I’m trying to use plotly to render a plot to custom browser code. As it stands, if I run py.plot() for my graph, the library creates a temporary html file, and then directs my system browser to display it.

Is there a way to have the .html file be created, but skip the launching of the system browser? All i need is the file. I can (programatically) tell my custom browser to display the html file.

Thanks
Eric

Hi @mn124700
This should work:

fig.write_html("path/to/file.html")

This will generate the HTML file but not run it.