You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using from rich import pretty; pretty.install(), the _ (last result) functionality of Python's REPL breaks.
To Reproduce
Without rich:
>>> 5+10
15
>>> _ /2
7.5
With rich:
>>> from rich import pretty
>>> pretty.install()
>>> 5+10
15
>>> _ /2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name '_' is not defined
When rich is installed after the first expression:
Describe the bug
When using
from rich import pretty; pretty.install()
, the_
(last result) functionality of Python's REPL breaks.To Reproduce
Without rich:
With rich:
When rich is installed after the first expression:
Platform
Linux, rich 5.1.2 and 5.2.0, Python 3.8.5
The text was updated successfully, but these errors were encountered: