A `validate=False` an option for `graph_objects` and `px` Figures?
See original GitHub issueThere’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.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:13 (11 by maintainers)
Top Results From Across the Web
Creating and updating figures in Python - Plotly
Graph objects contain descriptions of each valid property as Python docstrings, with a full API reference available. You can use these docstrings in...
Read more >Plotly: How to define colors in a figure using Plotly Graph ...
First, if an explanation of the broader differences between go and px is required, please take a look here and here.
Read more >plotlywidget | Yarn - Package Manager
An optional skip_invalid argument has been added to the Figure and FigureWidget constructors. By default, skip_invalid is False and invalid figure properties ...
Read more >Python Plotly tutorial - GeeksforGeeks
plotly.plotly; plotly.graph.objects; plotly.tools ... With px.line each data position is represented as a vertex (which location is given by ...
Read more >Tutorial: Computations - Quarto
Quarto has a wide variety of options available for controlling how code and ... as px import plotly.io as pio gapminder = px.data.gapminder()...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I like the idea of a three-level approach: full validation (current behavior), top-level validation (don’t dig into data arrays or nested objects like GeoJSON), and no validation.
(cc @red-patience / @LiamConnors on that last point maybe)