Overview

Streamlit 1.10, released on March 15, 2022, introduces st.tabs for organizing content in tabs and improves the caching system.

Main Features

st.tabs

The st.tabs component creates tabs for organizing application content into distinct sections.

python
import streamlit as st

tab1, tab2, tab3 = st.tabs(['Data', 'Chart', 'Config'])

with tab1:
    st.write('Data content')
    st.dataframe({'col1': [1, 2, 3], 'col2': [4, 5, 6]})

with tab2:
    st.line_chart([10, 20, 15, 30])

with tab3:
    st.slider('Parameter', 0, 100, 50)

Improved caching

The caching system is improved to better handle large objects and reduce unnecessary recomputation during user interactions.

python
import streamlit as st
import pandas as pd

@st.cache
def load_data(url):
    return pd.read_csv(url)

df = load_data('https://example.com/data.csv')
st.write(f'{len(df)} rows loaded')
st.dataframe(df.head())

Sources