pyvis icon indicating copy to clipboard operation
pyvis copied to clipboard

HTML title code does not display correctly.

Open lhn1703 opened this issue 3 years ago • 4 comments

Issue: title mouse hover text appears as raw html New pyvis html graph file generated () image

Old working pyvis html graph file image

change: image

It appears that rerunning pyvis generates new stylesheet and script links that breaks the feature. The hacky solution is to directly replace the new versions of these links in the generated html file to the previous working version.

lhn1703 avatar Aug 08 '22 18:08 lhn1703

Related? https://github.com/WestHealth/pyvis/issues/144

jhunpingco avatar Aug 30 '22 16:08 jhunpingco

Yes, it is same issue. Changing the first 2 html lines to previous version seemed easier than applying the other workaround, though it would be preferrable to be fixed on pyvis's end.

lhn1703 avatar Oct 18 '22 22:10 lhn1703

Hi fellow community members, I have came up with a solution that is more secured and recommended method by visjs officially. Please see the code gist I posted here: https://gist.github.com/yllowcool/1d21a38a02595b88f99547b98d92411f

Hope it helps 😀

yllowcool avatar Jun 09 '23 02:06 yllowcool