Showing a pyLDAvis html

I don’t know whether this is still an issue, but I have been dealing with this on the last 2 projects I have made, and I think I finally cracked it.

html_string = pyLDAvis.prepared_data_to_html(prepared_pyLDAvis_data)
from streamlit import components
components.v1.html(diplo_string, width=1300, height=800, scrolling=True)

Hope this helps!

2 Likes