BUG: avoid usage in_qtconsole for recent IPython versions
I've verified this manually with qtconsole 4.4.0, but if others want to check that'd be helpful.

![screen shot 2019-01-30 at 2 22 06 pm](https://user-images.githubusercontent.com/1312546/52010178-794a8080-249a-11e9-9376-a9254ce6bbf9.png)

What release should this be done in? 0.24.1, 0.24.2 or 0.25.0?

Closes https://github.com/pandas-dev/pandas/issues/25036