ipython arrow up gives me old history

Viewed 363

Recently ipython has started to act very oddly. I am using version 8.20 now. If I press arrow-up, instead of giving me the most recent line it gives me something from a long time in the past.

How can I fix this?

I am on ubuntu 20.04.

Here is a transcript:

Python 3.8.10 (default, Mar 15 2022, 12:22:08) 
Type 'copyright', 'credits' or 'license' for more information
IPython 8.2.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: x=2                                                                                                                               

In [2]: %history                                                                                                                          
x=2
%history

In [3]: random.choices(range(2), weights=probs)                                                                                                                

The [3] line comes from pressing the up arrow.

2 Answers

ipython 8.20 which has now been released should fix this bug.

Related