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

Some suggest of Spyder #15727

Closed
Vincent0706 opened this issue May 30, 2021 · 1 comment
Closed

Some suggest of Spyder #15727

Vincent0706 opened this issue May 30, 2021 · 1 comment

Comments

@Vincent0706
Copy link

Problem Description

Hope the spyder can have better the variable explorer for sympy.
When I use this code,"from sympy import *", or use the SymPy console, the variable explorer always load too much varialbes. And the area of type-box always so big that the value-box are hidden.
And the values displayed sometimes is hard to read. I think spyder can replace that with the return value of the print function. I think this can be a way to deal with the displayed of the unsupported variables.

Versions

  • Spyder version: 5.0.3
  • Python version: 3.9
  • Qt version:
  • PyQt version:
  • Operating System name/version: win10
@ccordoba12
Copy link
Member

Hey @Vincent0706, thanks for reporting. You said

When I use this code,"from sympy import *", or use the SymPy console, the variable explorer always load too much varialbes

It seems you don't understand how those imports work, which is very similar to the way the Sympy console works too. They import a lot of variables and objects from Sympy to make it easier to work with that library. And those are the objects shown in the Variable Explorer.

One way to avoid that is to the activate the option called "Exclude unsupported data types". But then no Sympy object would be displayed in the Variable Explorer.

image

I think spyder can replace that with the return value of the print function

Yeah, I agree. There's some work for that but unfortunately no one has been able to finish it:

spyder-ide/spyder-kernels#129

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