Created
July 7, 2017 19:23
-
-
Save PeterSulcs/a4a8d81ccad76e120dcbe6d2f3d66dbe to your computer and use it in GitHub Desktop.
Not working Plot.ly Dash example
This file contains 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
# -*- coding: utf-8 -*- | |
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
from dash.dependencies import Output, Input | |
app = dash.Dash('') | |
app.layout = dcc.Dropdown( | |
id='my-dropdown', | |
options=[ | |
{'label': 'New York City', 'value': 'NYC'}, | |
{'label': 'Montreal', 'value': 'MTL'}, | |
{'label': 'San Francisco', 'value': 'SF'} | |
], | |
value="MTL", | |
multi=True) | |
if __name__ == '__main__': | |
app.server.run(debug=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment