Two tabs opened each time I generate a chart

Hello,

I’m generating simple plot and each time it opens 2 tabs. One tab with the graph at http://127.0.0.1:35789/ and another tab at http://127.0.0.1:35789/ (same URL) which shows Connection refused.

The code at the end is basically the following:

    fig.for_each_xaxis(xdel)
    fig.update_layout(height=1920, width=1200, title_text="Candlestick Patterns", showlegend=False)
    fig.show()

How can I prevent the two tabs opening after calling fig.show() ?