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
[BUG] all_objects
redirects sys.stdout
permanently
#327
Comments
Thanks for reporting! This might be coming from Could you kindly report:
|
Regarding the "unequal length does not work":
|
I have the same issue: after calling For reference, here is my output of System: Python dependencies: |
Thanks, @AxelJanRousseau. Just to check, are the last lines also sth you get when using |
Those lines were part of the output from show_versions, and I included them just to make sure. But I tried again just now in a clean notebook and the warnings disappeared, so it was probably related to the boatload of other imports I had open in my notebook |
This is an |
Attempted fix here: Review and testing would be appreciated. |
all_objects
redirects sys.stdout
permanently
This fixes #327, which caused a permanently muted `stdout` after `all_objects` call. The bug was due to the `sys.stdout` not being properly reset after muting, in one of two instances where this was done. This PR also replaces both instances with a muter context manager - the implementation of the muting was a bit brittle, relying on manual try/except and temp stdout handling which is risky. Includes a test that the `sys.stdout` is indeed unchanged.
Describe the bug
Sktime changes stdout, which breaks a jupyter notebook
To Reproduce
sktime changes stdout from <ipykernel.iostream.OutStream object at 0x7f1a0ea77f10> to <_io.TextIOWrapper name='' mode='w' encoding='utf-8'>
Expected behavior
No changes
Versions
Additional context
Please also not that not of them work, see sktime/sktime#6276
The text was updated successfully, but these errors were encountered: