Slow ipython in osx yosemite?

Seems AppNap puts ipython to sleep, try this to disable it:

defaults write org.python.python NSAppSleepDisabled -bool YES