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

[bug] cannot support sympy.init_printing(use_unicode=False) #488

Open
Freed-Wu opened this issue Dec 25, 2021 · 1 comment
Open

[bug] cannot support sympy.init_printing(use_unicode=False) #488

Freed-Wu opened this issue Dec 25, 2021 · 1 comment

Comments

@Freed-Wu
Copy link

Freed-Wu commented Dec 25, 2021

In python's repl:

import sympy
sympy.init_printing(use_unicode=False)
sympy.simplify(x ** 2 + 2 * x + 1)

the result is

 2
x  + 2*x + 1

However, in ptpython, it always be

x ** 2 + 2 * x + 1

It seems that sympy.init_printing cannot work in ptpython.

@jonathanslenders
Copy link
Member

This is probably due to ptpython not yet using ``sys.displayhook`.

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