Skip to content

Fixes stdout_redirected in ipykernels

Bitbucket Importer requested to merge bitbucket/declined-pr-10 into branch/default

Created originally on Bitbucket by avmo (Ashwin Vishnu)

Changesets for this Pull Request have not been imported, because it had been already declined on Bitbucket. Marked as closed by the import user.

Now works in ipython/jupyter. Ideally I would have preferred to avoid monkeypatching and instead return another context manager. I am not sure how to return another context manager exactly, contextlib.nested seems like a solution?. Also there was an added trouble of importing is_run_from_ipython on the top of redirect_stdout module

Merge request reports