I’m trying to create a copy for caching purposes, so I can load and make slight modifications to some traces without generating a new Figure which would take a lot of time in my Dash app.
Deepcopy used to be implemented for Figure, but it was removed somewhere along the way with recent updates. Regenerating from figure.to_dict() is unfortunately way too slow vs my prior use of deepcopy. A simple copy does not replicate the traces, instead only creating pointers.
Any suggestions? Creating copies of Traces seems to be the bottleneck here