I packaged a python streamlit app on Azure App Service. A button of the app wants to point to an external PowerBI dashboard.
What I want to achieve is to make the button (in the app running on App Service, so on a remote host) open a new tab or browser window on the local machine from which the remote app is accessed.
I think the right way to do this is to use the webbrowser.open_new_tab()
function, but I can't understand how to exactly use this.
The url that I need to open from within the app is in the form https://app.powerbi.com/links/...
.
This is a related question that shares a similar setting, but I think that the goal there is not exactly the same, because I do not want to access some service on my local machine (deduced from the url that points to <ip-localhost>:8080
), but I just want to open a new internet page on my local machine.