How to open Streamlit URL that is hosted by Databricks in local web browser?
I have run this webapp code on Databricks notebook. It works properly without any errors.
With databricks acting as server, I am unable open this link on my browser for this webapp.
But when I run the code on my local IDE, I am able to just open the URL on my browser.
Is there a way that I can access the webapp using this URL generated by Databricks?
It looks like you received an answer on the Databricks forum, so just wanted share that answer/link to that post here in case others encounter a similar issue.
Yes, there are a few steps you can follow to access the web app hosted on Databricks:
Make sure that the Databricks cluster is running and that the web app is running on the cluster.
In the Databricks notebook, check the port on which the web app is running. You can find this in the output of the command that started the web app.
Configure your Databricks cluster’s network settings to allow inbound traffic on the port that the web app is running on. You can do this by going to the Azure portal and navigating to the Network Security Group associated with your Databricks cluster. Then, add an inbound security rule that allows traffic on the port that the web app is running on.
Use the public IP address of your Databricks cluster to access the web app. To find the public IP address, go to the Azure portal and navigate to the Databricks workspace. Then, click on the “Networking” tab and look for the “Public IP address” field.
Open your browser and navigate to the URL of the web app, using the public IP address and the port number. For example, if the public IP address is 1.2.3.4 and the web app is running on port 8080, you would navigate to http://1.2.3.4:8080.
Note that the steps above assume that your Databricks cluster is running in an Azure Virtual Network (VNet) and is accessible from the internet. If your cluster is not in a VNet or is not accessible from the internet, you may need to set up a Virtual Private Network (VPN) or a ExpressRoute connection to access the web app.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.