pip install streamlit-discourse
from streamlit_discourse import st_discourse
# https://discuss.streamlit.io/t/discourse-component/8061
discourse_url = "discuss.streamlit.io"
topic_id = 8061
st_discourse(discourse_url, topic_id)
Interested to see Streamlit Discourse in action? You can try it out now in Streamlit Sharing!
Demo's source code and component's documentation are also available there.