Не запускается приложение Plotly Dash
Пытаюсь начать строить приложение c Plotly Dash. Скопировала код для кнопки загрузки файла с официального сайта.
import dash
import dash_core_components as dcc
import dash_html_components as html
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
app.layout = html.Div([
dcc.Upload(html.Button('Upload File')),
html.Hr(),
dcc.Upload(html.A('Upload File')),
html.Hr(),
dcc.Upload([
'Drag and Drop or ',
html.A('Select a File')
], style={
'width': '100%',
'height': '60px',
'lineHeight': '60px',
'borderWidth': '1px',
'borderStyle': 'dashed',
'borderRadius': '5px',
'textAlign': 'center'
})
])
if __name__ == '__main__':
app.run_server(debug=True)
Результат компиляции:
Dash is running on ссылка
* Serving Flask app "__main__" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: on
An exception has occurred, use %tb to see the full traceback.
SystemExit: 1
По переходе по ссылке открывается такая страницы:
