Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command history mangled on SymPy interactive session #13635

Open
jamesWalker55 opened this issue Apr 13, 2022 · 3 comments
Open

Command history mangled on SymPy interactive session #13635

jamesWalker55 opened this issue Apr 13, 2022 · 3 comments

Comments

@jamesWalker55
Copy link

I regularly use SymPy's interactive console as a calculator, and that uses IPython as the interpreter. Since updating to IPython 8.2.0, the command history no longer works as expected.

The issue

After I enter 1+1 in the console, when I access the command history with <up>, the previous command is replaced with Integer (1 )+Integer (1 ) instead of 1+1.

This does not occur on IPython 8.1.1, it only occurs on IPython 8.2.0.

Expected behaviour

When I access the command history with <up>, the previous command should be 1+1.

Steps to reproduce

  1. Install sympy with pip install -U sympy
  2. Launch an interactive session with isympy -I
    • the -I command enables interactive mode, where Python number literals are replaced with sympy numbers
  3. Enter 1+1 into the console and press <enter>
  4. Press <up> to access the command history
  5. The command history shows the last command as Integer (1 )+Integer (1 )
@segasai
Copy link

segasai commented Apr 14, 2022

this is a duplicate of #13631

@jamesWalker55
Copy link
Author

this is a duplicate of #13631

Doesn't seem like it to me. #13631 is regarding the order of the command history, while this issue is about the command history displaying completely different history from what was entered.

@jamesWalker55
Copy link
Author

Confirming that the issue still exists on the latest version 8.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants