Skip to content

Instantly share code, notes, and snippets.

@PeterSulcs
Created July 7, 2017 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PeterSulcs/a4a8d81ccad76e120dcbe6d2f3d66dbe to your computer and use it in GitHub Desktop.
Save PeterSulcs/a4a8d81ccad76e120dcbe6d2f3d66dbe to your computer and use it in GitHub Desktop.
Not working Plot.ly Dash example
# -*- 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