question about this: https://probcomp.github.io/gen-finance/ it looks like when I refresh a vega-lite chart too fast, I get a flicker as the chart disappears and re-appears. Is there a clean way to have the vega-lite viewer preserve its area during a refresh?
Matt implemented this a while back so it should work. Does it only happen with the editor or with normal clerk as well?
Oh interesting I’m not sure, this notebook only works in editor mode so I didn’t have these fast-reloading charts in normal mode
@mkvlr do you have a pointer to the PR where matt fixed this? maybe I can figure out how to get the fix working in editor mode…
@sritchie09 should be https://github.com/nextjournal/clerk/pull/231
interesting, I will test if the flicker is still present. I see when I look at the react-vega codebase that vega-embed actually has a modifyView command… https://github.com/vega/react-vega/blob/master/packages/react-vega/src/Vega.tsx#L41
maybe we need to do more of what react-vega is doing, or pull it in instead of vega-embed?
I got the Vega component refreshing correctly by using the component directly instead of the clerk/vl wrapper with inspect! This makes more sense inside of a viewer anyway