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

flush stdout / stderr after py_run_string with Python 3 #332

Open
kevinushey opened this issue Aug 10, 2018 · 0 comments
Open

flush stdout / stderr after py_run_string with Python 3 #332

kevinushey opened this issue Aug 10, 2018 · 0 comments

Comments

@kevinushey
Copy link
Collaborator

E.g.

reticulate::use_python("/usr/local/bin/python3", required = TRUE)
reticulate::py_run_string("print('hello')")

No output is emitted in Python 3 until the stdout / stderr streams are explicitly flushed; we should do that ourselves at the conclusion of py_run_string() / py_run_file().

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

1 participant