I thought this can be written in one line to improve readability... I just play with it and I make a little PR: https://github.com/Carreau/ipython/pull/6 :wink: