syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.7k stars 4.9k forks source link

Replicate ipython history behaviour in Emacs #8999

Closed dindom999 closed 4 years ago

dindom999 commented 7 years ago

Say, we've entered the following in the normal ipython shell.

In [1]: 1+1
Out[1]: 2

In [2]: 1+2
Out[2]: 3

In [3]: 2+4
Out[3]: 6

If I now enter: In[4]: 1+

and press the up arrow key, ipython will offer +1 and +2, i.e. I can skip over 2+4.

How do I replicate this behaviour using Emacs' ipython shell (IPy mode). I have try to use (comint-previous-matching-input-from-input), but this only work for this session history. it can not recall last session like iptython shell.

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!