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

Stdout is not captured inside Jupyter notebook due to buffering #372

Open
lesteve opened this issue Oct 10, 2022 · 0 comments
Open

Stdout is not captured inside Jupyter notebook due to buffering #372

lesteve opened this issue Oct 10, 2022 · 0 comments

Comments

@lesteve
Copy link
Member

lesteve commented Oct 10, 2022

In a scikit-learn context, the GridSearchCV does not produce output to show its progress:
scikit-learn/scikit-learn#22849

This seems like an issue only for the loky backend, there is a reproducer with joblib here:
scikit-learn/scikit-learn#22849 (comment)

Haven't taken the time to put together a snippet with only loky but I assume this is not that hard.

A work-around is to force the stdout/stderr to be unbuffered e.g. by setting PYTHONUNBUFFERED=1

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