Hi All,
I am unable to open the Dash on Chrome Browser. I have Dash installed on EC2 instance and set up port 80 to accept inbound requests. Did anyone face this issue before? Appreciate your help in resolving this.
Here is my code:
import dash
import dash_html_components as html
import dash_core_components as dcc
import pandas as pd
import numpy as np
from dash.dependencies import Input, Output
from plotly import graph_objs as go
from plotly.graph_objs import *
from datetime import datetime as dt
app=dash.Dash()
mapbox_access_token=“pk.”
#create a dataframe for csv file
df1 = pd.read_csv(’/tmp/plot_tree.csv’)
df1.dropna()
print(df1.head(5))
#layout of the app
app.layout=html.Div(children=[
html.H1(“Hello”)
])
if name==“main”:
app.run_server(debug=True, port = 8050, host=“127.0.0.1”)
When I execute this code, the server is running.
[5 rows x 7 columns]
Running on http://127.0.0.1:8050/
Debugger PIN: 125-894-661
But, Browser is like this:
This site can’t be reached
127.0.0.1 refused to connect.
Try:
- Checking the connection
- Checking the proxy and the firewall
ERR_CONNECTION_REFUSED