Created
June 1, 2020 20:35
-
-
Save tashrifbillah/2140a589a3592a60fce0b5c475cfcc2e to your computer and use it in GitHub Desktop.
Dash using same port
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import dash | |
import dash_html_components as html | |
import dash_core_components as dcc | |
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css'] | |
app = dash.Dash(__name__, external_stylesheets=external_stylesheets) | |
app.layout = html.Div([ | |
'Group outliers by: ', | |
html.Div([ | |
dcc.Dropdown( | |
id='group-by', | |
options=[{'label': 1, 'value': 'hi'}, {'label': 2, 'value': 'hello'}], | |
value='hello' | |
), | |
], | |
), | |
'Sample HTML' | |
]) | |
app.run_server(debug=False, port= 8050, host= 'localhost') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment