Parse and display log of long running process

Question

A long running process (executable) started from within the streamlit app produces output to the console. Is there a way to display or process the logfile while the process is running (e.g., to translate progress written to the command line to be displayed in a progress bar). So far I only succeeded displaying the log once the process completed.

Hi @timosachsenberg

Could you see if this forum thread addresses your issue:

You could also look into using asyncio to perform multiple processes in parallel (such as executing a process while also looking into the log).

Hope this helps!

Thanks. Will give asyncio a try and report back. The other topic was related but not what I had in mind.