pylab: decouple console from editor

as the console seems to crash very often