How can I use plotly offline with flask . I know that plotly can be used offline with Ipython notebook , Can I use Plotly offline with flask ? If not , can someone please sugges
Edit: Updated for current Plotly version
What you want to do is make functions that return the offline "plot" result as a html Also, make sure to include the plotly.js library in your static files and link to them in your html pages that show graphs. This is an example of what I'm saying:import plotly.graph_object as go
from plotly import io
fig = go.Figure(data=barChart, layout=barLayout)
div = io.to_html.plot(fig, show_link=False, output_type="div", include_plotlyjs=False)
return div