Move the cursor to the bottom after logging in st.text_area


I am using st.text_area to display logs from my background process. i.e. every time some one clicks a refresh button, I read the log file and write it using st.text_area

The problem is that the cursor/scroll bar is at the top of the text_area. But in a log file we are most interested in what is at the end of the file (which is the most recent update). Is there some way to specify that the text_area scroll bar should scroll down to the bottom.


Any pointers on this will be helpful. Thanks.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.