import dash import dash_core_components as dcc import dash_html_components as html import pandas as pd import plotly.express as px pd.options.plotting.backend = "plotly" data = px.data.iris() app = dash.Dash(__name__) fig = data.plot.scatter(x='sepal_length', y='sepal_width') app.layout = html.Div( children=[ dcc.Graph( figure=fig ), ] ) if __name__ == "__main__": app.run_server(debug=True)