How to display '<IPython.core.display.HTML object>' with streamlit components?

Hi @Prelon, welcome to the forum :wave:

You have to pass raw html to streamlit in this case.

from streamlit import components

html_object = show_weights(clf, vec=vec)

raw_html = html_object._repr_html_()

components.v1.html(raw_html)

4 Likes