Last active
March 4, 2019 04:34
-
-
Save jjone36/8df49ad2c36974394008797b8eb556d3 to your computer and use it in GitHub Desktop.
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
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
from dash.dependencies import Input, Output | |
import pandas as pd | |
import plotly.graph_objs as go | |
# Step 1. Launch the application | |
app = dash.Dash() | |
# Step 2. Import the dataset | |
df = pd.read_csv(filepath) | |
# Step 3. Create a plotly figure | |
# Step 4. Create a Dash layout | |
app.layout = html.Div([ | |
dcc.Graph(id = 'plot_id', figure = fig) | |
]) | |
# Step 5. Add callback functions | |
# Step 6. Add the server clause | |
if __name__ == '__main__': | |
app.run_server(debug = True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment