There's already an issue outlining the effects graph_object validation has on plot generation time. Users can bypass this performance hit by replacing the graph_objects with dict and then display the plot with plotly.offline.iplot(fig, validate=False) or if they are creating graphs in Dash, they can forgo the plotly.py library altogether and just use a dict in their Graph component's figure argument.
This solution can greatly improve the performance of Dash apps but it means that Dash users with expensive graphs have to choose between using px/plotly.py's update methods and optimally fast code.
I wonder if a way to turn off validation, especially in Dash apps, would help Dash users get the best of both worlds.
cc @matthewchan15
There's already an issue outlining the effects
graph_objectvalidation has on plot generation time. Users can bypass this performance hit by replacing thegraph_objectswithdictand then display the plot withplotly.offline.iplot(fig, validate=False)or if they are creating graphs in Dash, they can forgo theplotly.pylibrary altogether and just use adictin their Graph component'sfigureargument.This solution can greatly improve the performance of Dash apps but it means that Dash users with expensive graphs have to choose between using
px/plotly.py'supdatemethods and optimally fast code.I wonder if a way to turn off validation, especially in Dash apps, would help Dash users get the best of both worlds.
cc @matthewchan15