In this example the text box will stay fixed, however you will only see the first lines of the logging. Logtxtbox.text_area("Logging: ", logtxt, height=500) Logtxtbox.text_area("Logging: ",logtxt, height = 500) # creating a placeholder for the fixed sized textbox The general idea is to create a fixed size “text box” on a webpage: import streamlit as st ![]() ![]() The advantage of the example ( code) is that you will always see the last lines of the text, the disadvantage is that the text box is growing, when more text is added (I would like to have a fixed size with scroll bars). The example is indeed an interesting approach, however I would like to create it in a bit different way (unfortunately I am also still in a learning curve regarding Python and Streamlit). ![]() Hello, thank you very much for your fast reply.
0 Comments
Leave a Reply. |