simplify code by expecting ipython at leat 1.1.0