Hi folks! Can you please tell me if there is a way to redraw plot into same browser tab after show() is called?
Archived discussions · Captured October 28, 2026
Redraw plot into same browser tab after show() is called

Bokeh show function just calls the Python built-in webbrowser.open function. So it can’t do anything that Python built-in can’t also do. It does appear that at least with some Python versions if you pass new=0 to webbrowser.open, then
the url is opened in the same browser window if possible.
which may mean in the existing raised tab. So you could potentially try generating HTML file output with Bokeh passing that to webbrowser.open yourself (and also passing new=0). I would say that this approach seems like it might fragile or platform/browser dependent.

End of archived discussion · Replies are disabled