Exploring page configuration
Streamlit allows us to configure a few essential page-specific features at the top of each Streamlit app. So far, we have been using the Streamlit defaults, but at the top of our Streamlit app, we can manually configure everything, from the page title shown on the web browser used to open our Streamlit apps, to the page layout, to the sidebar default state (we will cover the sidebar in the Using the Streamlit sidebar section!).
The default for Streamlit apps is to have a centered page layout, which is why there is copious white space on the edges of our apps. The following code sets up our Streamlit app in a wide format instead of our default centered one:
import streamlit as st import pandas as pd st.set_page_config(layout='wide') st.title('SF Trees') st.write('This app analyses trees in San Francisco using' ' a dataset kindly provided by SF DPW'...