Skip to content

Instantly share code, notes, and snippets.

@jjone36
Last active March 4, 2019 04:34
Show Gist options
  • Save jjone36/8df49ad2c36974394008797b8eb556d3 to your computer and use it in GitHub Desktop.
Save jjone36/8df49ad2c36974394008797b8eb556d3 to your computer and use it in GitHub Desktop.
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