ipykernel icon indicating copy to clipboard operation
ipykernel copied to clipboard

ipykernel unconditionally calls `sys.stdout.flush()`

Open twizmwazin opened this issue 2 years ago • 2 comments

ipykernel unconditionally calls sys.stdout.flush() and sys.stderr.flush(). This is a problem when either sys.stdout or sys.stderr is None, such as in pythonw.exe on windows, or Pyinstaller's windowed mode. All of these checks should be garded with a not-None check.

twizmwazin avatar May 23 '23 00:05 twizmwazin

same issue here

gregory-shklover avatar Jun 10 '24 11:06 gregory-shklover

Submitted PR: https://github.com/ipython/ipykernel/pull/1247

gregory-shklover avatar Jun 10 '24 12:06 gregory-shklover