Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding IO capture tools #145

Merged
merged 6 commits into from
Sep 7, 2023

Conversation

Asaurus1
Copy link
Contributor

@Asaurus1 Asaurus1 commented Jun 5, 2023

@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
Copy link
Contributor Author

Asaurus1 commented Jul 3, 2023

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

Copy link
Owner

@arnaudmiribel arnaudmiribel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Asaurus1, apologies for the long delay before responding. I've been out for a while! This extra looks all great, congrats for your submission. I'm approving and merging this so it gets published in our next release 🎈

@arnaudmiribel arnaudmiribel merged commit 97ecab4 into arnaudmiribel:main Sep 7, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants