The divider is a simple function that puts a horizontal line across the width of the page.
This can make it easier to indicate different sections of the page that should be looked at together.
import streamlit as stst.title("This is a title")st.write("Here's a first line of text")st.divider()st.write("Here's some more text")st.divider()st.write("Here's the final text")
2024-10-08 09:05:41.387
Warning: to view this Streamlit app on a browser, run it with the following
command:
streamlit run c:\HSMA\streamlit_book\.venv\Lib\site-packages\ipykernel_launcher.py [ARGUMENTS]
There are no additional parameters you can pass into st.divider().