Duplicate a graph in another tab


I’d like to duplicate a graph from one tab to another tab. Everything that happens in graph on the first tab should be reflected in the second one. Any thoughts on how to achieve that?

If it’s of any interest, here’s the relevant piece of code:

The original tab is “Explore”, while I want to replicate it, with all events, in “Profile”:

The app helps in audio exploration and annotation. If you need an audio sample, here is one.

One way to do this would be to use dcc.Store to store the figure, then populate the content of each tab from the stored figure.

Check out this example. It uses tabs from dash-bootstrap-components, but it should translate to dash-core-components pretty easily if you prefer to use that.