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

Plotly browser renderer: keep focus in terminal: reuse plot tab?

When I use the ‘browser’ renderer go generate a plot (running python in a terminal), plotly creates a new browser tab and draws my plot there.

I often don’t want to create a new tab; I just want to redraw the plot in the same tab. How do I set up plotly so that it opens a new plotly browser tab only if there isn’t one already in the browser?