add ipython history for dimension reduction