You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See https://plotly.com/python/reference/layout/shapes/ for more information and chart attribute options!
866
-
867
-
<!-- #region -->
868
-
### What About Dash?
869
-
870
-
[Dash](https://dash.plot.ly/) is an open-source framework for building analytical applications, with no Javascript required, and it is tightly integrated with the Plotly graphing library.
871
-
872
-
Learn about how to install Dash at https://dash.plot.ly/installation.
873
-
874
-
Everywhere in this page that you see `fig.show()`, you can display the same figure in a Dash application by passing it to the `figure` argument of the [`Graph` component](https://dash.plot.ly/dash-core-components/graph) from the built-in `dash_core_components` package like this:
875
-
876
-
```python
877
-
import plotly.graph_objects as go # or plotly.express as px
878
-
fig = go.Figure() # or any Plotly Express function e.g. px.bar(...)
879
-
# fig.add_trace( ... )
880
-
# fig.update_layout( ... )
881
-
882
-
import dash
883
-
import dash_core_components as dcc
884
-
import dash_html_components as html
885
-
886
-
app = dash.Dash()
887
-
app.layout = html.Div([
888
-
dcc.Graph(figure=fig)
889
-
])
890
-
891
-
app.run_server(debug=True, use_reloader=False) # Turn off reloader if inside Jupyter
0 commit comments