Skip to content

What about Dash? #1654

Closed
Closed
@nicolaskruchten

Description

@nicolaskruchten

We need to add, to every R and Python page other than the "Is Plotly Free?" pages, a section at the bottom that reads something like:

What about Dash?

Dash is an open-source framework for building analytical applications, with no Javascript required, and it is tightly integrated with the Plotly graphing library. 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 from the built-in dash_core_components package like this:

import plotly.graph_objects as go # or plotly.express as px
fig = go.Figure() # or the output of any Plotly Express function
# fig.add_trace( ... )
# fig.update_layout( ... ) 

import dash
import dash_core_components as dcc
import dash_html_components as html

app = dash.Dash()
app.layout = html.Div(
    dcc.Graph(figure=fig)
)

app.run_server(debug=True)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions