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

Catching python STDOUT #160

Open
cboulanger opened this issue Nov 23, 2022 · 0 comments
Open

Catching python STDOUT #160

cboulanger opened this issue Nov 23, 2022 · 0 comments
Milestone

Comments

@cboulanger
Copy link

cboulanger commented Nov 23, 2022

Hi, thank you for this incredibly useful gem.

I have a question/feature request: I would like to "mute" the STDOUT output of python and handle it with ruby code (e.g., write it to a log file). Redirecting $stdout on the ruby side does not seem to work (seems logical since python has writes directly to STDOUT). In case this cannot already be handled py PyCall, would this be feature that you would consider implementing? It would probably require injecting some python code to set up the redirection.

@mrkn mrkn added this to the Version 2.0.0 milestone Aug 25, 2023
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

No branches or pull requests

2 participants