ipython/ipython — pull request #3765 by minrk (2013-07-25 03:12:59+00:00)
Title: cleanup terminal console iopub handling

ensures IOPub for a given cell is handled before drawing the next prompt.

Follows logic elsewhere using `status=idle` to indicated end of output for a given cell. Prior to this, early execute reply could result in some output being printed after the prompt for the next input.