SymPy makes REPL to stuck

Xing_Shi_Cai
Thu, 16 Jan 2025 01:14:53 +0000
General Usage

When I tried the following in REPL, it gets stuck when I types the last line. I cannot keep typing. The command top shows that Julia is using all the CPU. Any suggestion on how to trouble shoot the problem?

I thought it might be due to the fact that I am using kitty terminal emulator. However, other terminal emulators have the same issue.

Also, it seems that running SymPy.jl code as a script does not have this issue.

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.2 (2024-12-01)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using SymPy

julia> @syms n
(n,)

julia> ex = 1/(n*(n+3))
    1
─────────
n⋅(n + 3)

julia> sympy.apart(e

20 posts - 5 participants