ipython / ipython/ipykernel

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

Open
#1,119 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
734
Forks
412
Avg merge
1d 5h
Merged PRs (30d)
8

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.