Notebook like behavior to display data in a scrolling fashion

I’m trying to use streamlit to achieve a exploratory notebook feel where the user enters a query, get the result, a new textbox follows this to solicit new query which is then displayed below the results of the old query and so on. Kinda like a Jupyter notebook feel, but with the awesome-ness of Streamlit. Any suggestions on if I can do this within streamlit, and if so how? If this is not possible via streamlit, what alternative ways to do this do you recommend? Essentially, I don’t want to replace the results of the previous query with the new query.

I hope my question is clear.

Thank you,