How to update an interactive graph in the same browser tab

I created a Treemap figure with plotly. I like it. I was able to visualize the graph in chrome. fig.show() automatically opens the chrome tab. My problem is related to updating the graph. I need to update the data of the graph periodically. I could do it with update_traces. However, when I use fig.show(), it opens a new browser tab. I would like to keep only one browser tab open for the graph. How do I 1) update the graph in the existing browser tab or 2) close the graph in the existing browser tab when the new tab opens?

Thanks,

I think have the same problem.
Basically Im trying to graph some real time data and the loop i currently have uses
fig.show()

which results in a new tab being created every second, instead of a graph on a single tab being updated every second.

How can I fix this?