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

'.sympy' on an expression causes Jupyter Notebook to hang #135

Open
anaidan opened this issue Jul 1, 2024 · 6 comments
Open

'.sympy' on an expression causes Jupyter Notebook to hang #135

anaidan opened this issue Jul 1, 2024 · 6 comments

Comments

@anaidan
Copy link

anaidan commented Jul 1, 2024

My notebook hangs 100% of the time I try this:

from lcapy import *
a = 2 * t + 3
a.sympy

I tried not doing a * import, but no luck there either. Any suggestions?

@anaidan anaidan changed the title '.sympy' on an expressions causes Jupyter Notebook to hang '.sympy' on an expression causes Jupyter Notebook to hang Jul 1, 2024
@mph-
Copy link
Owner

mph- commented Jul 1, 2024

Bother, this works for me. What do you get running show_version() ?

@anaidan
Copy link
Author

anaidan commented Jul 1, 2024

Thanks for the quick response:

Python: 3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:26:23) [MSC v.1916 64 bit (AMD64)]
SymPy: 1.11.1
NumPy: 1.24.3
Matplotlib: 3.7.2
SciPy: 1.11.1
Lcapy: 1.23

@mph-
Copy link
Owner

mph- commented Jul 1, 2024

Would you mind trying to update SymPy? I;m currently using 1.11.1

@mph-
Copy link
Owner

mph- commented Jul 1, 2024

Oops, that's your version! I'm using 1.12

@anaidan
Copy link
Author

anaidan commented Jul 1, 2024

Just updated both Python and SymPy, still no luck. Things are working fine on a different computer. It must be something with my Anaconda setup...

Python: 3.12.4 | packaged by Anaconda, Inc. | (main, Jun 18 2024, 15:03:56) [MSC v.1929 64 bit (AMD64)]
SymPy: 1.12
NumPy: 1.26.4
Matplotlib: 3.8.4
SciPy: 1.13.1
Lcapy: 1.23

@mph-
Copy link
Owner

mph- commented Jul 1, 2024

To find where it hangs, you could try

from lcapy import t
t.pdb().sympy

and step through in the Python debugger...

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