Skip to content

Instantly share code, notes, and snippets.

@tashrifbillah
Created June 1, 2020 20:35
Show Gist options
  • Save tashrifbillah/2140a589a3592a60fce0b5c475cfcc2e to your computer and use it in GitHub Desktop.
Save tashrifbillah/2140a589a3592a60fce0b5c475cfcc2e to your computer and use it in GitHub Desktop.
Dash using same port
#!/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