ipython/ipython — pull request #1023 by minrk (2011-11-21 19:19:02+00:00)
Title: flush stdout/stderr at the end of kernel init

call `stdout/stderr.flush()` to prevent print statements, etc. made during initialization from being associated with the first execution.

It turns out that the qtconsole actually depended on this behavior, so a small change was made there, which associates any messages having no parent as being meant for all frontends. The only messages for which this would normally be true are print statements made during initialization.

This draws an essential difference between the qt frontend and the notebook - in Qt, like the terminal, print statements during init *do* arrive in the console, below the banner. In the notebook, they are ignored.

closes #1022