@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.
@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