How to show plot in the same window? How to plot real time, live, dynamic

I use fig = go.Figure()
Everytime I do, it opens a new window in the browser, I want it to show in the same window so that I can see the realtime updating image.
Or is there other way to real time plot?