def init_history_index(self):
        self._history_level = self._get_history_max_index()+1

    #----------------------- IPython PRIVATE management section --------------
set history to last command entered
dataset/ETHPy150Open ipython/ipython-py3k/IPython/deathrow/gui/wx/ipshell_nonblocking.py/NonBlockingIPShell.init_history_index