Accessing data that were caching

Hi everyone,

I am working on a app where I store data in a cache and I would like to access it to print it in another tab. Is there a way to do this ?

Thanks in advance for the help !

You could try this:

import streamlit as st

if 'stored_data' not in st.session_state:
    st.session_state['stored_data'] = ""

input = st.text_input('Enter Input: ')

if input:
    st.session_state.stored_data = input.upper()

Does that answer you question?

Thank you very much, it really fixed my issue ! I did not know about this function yet, still discovering !