Streamlit

satya - 2/13/2024, 3:53:04 PM

Streamlit Home

Streamlit Home

satya - 2/13/2024, 3:53:15 PM

Install

Install

satya - 2/13/2024, 4:27:51 PM

layouts

layouts

satya - 2/14/2024, 6:19:35 PM

How do I write html to screen?


import streamlit as st

# Define your HTML content with heading 1 and paragraph elements
html_content = """
<h1>This is a Heading 1</h1>
<p>This is a paragraph.</p>
<h1>Another Heading 1</h1>
<p>Another paragraph.</p>
"""

# Display the HTML content in Streamlit
st.markdown(html_content, unsafe_allow_html=True)