Black Lives Matter. Please consider donating to Black Girls Code today.

How do I render the raw html file generated from scattertext package

I am trying to make a python Dash APP which would allow user to upload two documents and then generate the beautiful scattertext visualization with scattertext package. If you do the work in pure python IDE, it will generate a html file and store in a local file then user can open it with either chrome or firefox web browser. See details on https://github.com/JasonKessler/scattertext . The html file is powered by d3.js graphing objects.

In my case, I am comparing consumer reviews for two big documents with scattertext, see https://github.com/sound118/Scatter-text-for-Chinese for details. I am struggling with the html objects generated from produce_scattertext_explorer in scattertext package. How can I actually render this object with Dash plotly? It seems it’s kind of impossible to render it as raw html file which I tried ended up with only showing the search box appearing. Can we do it with dcc.graph or anything that can help would be greatly appreciated!