ipython/ipython — pull request #5288 by minrk (2014-03-07 19:55:57+00:00)
Title: Correct initial state of kernel status indicator

- start as busy, since we don't know
- send a kernel_info request once connections are established
- set idle on reply to the to the kernel_info request

Two cases:

1. Kernel is busy when the notebook opens, and it will be correctly indicated as such.
2. Kernel is idle when the notebook opens. It will briefly indicate as busy,
then indicate idle as soon as the kernel is responsive.

There may actually be a bonus effect in cases where kernels are slow to start, since they will take some time to respond to the info request. In this case, the busy indicator will actually communicate how long it takes for the kernel to become responsive.