dms-vep / dms-vep-pipeline-3

Pipeline for analyzing deep mutational scanning (DMS) of viral entry proteins (VEPs)
Other
1 stars 0 forks source link

Stochastic duplication of `Altair` plots on VitePress homepage #132

Closed WillHannon-MCB closed 1 month ago

WillHannon-MCB commented 1 month ago

There is a strange phenomenon where certain Altair plots are duplicated on the VitePress site. Only one of the two plot 'containers' renders properly when this occurs.

There are no issues with the markdown or compiled HTML files. It seems to be an issue with 'Hydration' – the process whereby Vue (the Javascript library behind VitePress) adds reactivity to the static HTML document. My current guess is that the issue stems from the asynchronous way data is loaded into the Altair Vue component.

Caleb-Carr commented 1 month ago

For the lassa build (https://dms-vep.org/LASV_Josiah_GP_DMS/), I am still seeing stochastic duplication of charts and markdown text randomly not appearing (see images below).

Screenshot 2024-05-13 at 5 43 24 PM Screenshot 2024-05-13 at 5 43 12 PM Screenshot 2024-05-13 at 5 43 01 PM
WillHannon-MCB commented 1 month ago

I noticed the duplication issue yesterday during VEP subgroup. I'll do some more investigation today.

The missing text is mysterious. Is this happening on the same page as an Altair plot?

Caleb-Carr commented 1 month ago

The missing text is also on a page with Altair plots but it seems if you leave the page and come back to it, it appears correctly