arnaudmiribel / streamlit-extras

Discover, try, install and share Streamlit re-usable bits we call "extras"!
https://extras.streamlit.app
Apache License 2.0
715 stars 123 forks source link

Adding IO capture tools #145

Closed Asaurus1 closed 11 months ago

Asaurus1 commented 1 year ago

@arnaudmiribel While I'm working on the query string stuff, here's some more utility functions for capturing stdout, stderr, and logs, and rendering them to the page. It's very helpful for when you have a script or CLI tool someone else gave you and you just want to render its output without rewriting all the internal print calls to direct to streamlit.

I also had to patch up the streamlit_patches.py file to get the gallery to run on my system (I did confirm I was using the poetry-locked streamlit 1.15.1, so it was odd that some of the imports were broken). I can revert that change if you can confirm it breaks things for you and is therefore a problem with my install.

https://github.com/streamlit/streamlit/blob/release/1.15.1/lib/streamlit/runtime/scriptrunner/script_runner.py#L49

Asaurus1 commented 1 year ago

@arnaudmiribel I think this is still waiting to build. Any updates?