ob-sagemath icon indicating copy to clipboard operation
ob-sagemath copied to clipboard

Runs very slow and cannot reuse session in my setting

Open jcguu95 opened this issue 5 years ago • 3 comments

Hello, thank you for this package! I installed ob-sagemath and sage-shell-mode, and thankfully it works.

However, the performance is a bit slow on my setting, and also the session cannot be re-used. I wonder if I have missed something.

1

#+BEGIN_SRC sage :session foo
1+1
#+END_SRC

This code block takes 6 seconds to evaluate. Is this normal?

2

#+BEGIN_SRC sage :session foo
1+1+1
#+END_SRC

In the same session, lets say I change my code to 1+1+1. This time it tries to evaluate, but doesn't give an output for 60 seconds. Changing foo to fooo does solve this question. I suspect that in my setting, a session can only be used properly one time.

jcguu95 avatar Aug 02 '20 12:08 jcguu95

I found a way to escape this issue, by simply not using session.

#+begin_src sage test.sage
1+1  
#+end_src

This runs fast, and can be re-evaluated without problems.


Thank you! I finally found a nice IDE for sage-math.

jcguu95 avatar Aug 05 '20 12:08 jcguu95

This is weird, and I apologize.. but my method above stop working well.

jcguu95 avatar Aug 06 '20 02:08 jcguu95

It seems to be a problem of sage-shell-mode but not ob-sagemath.. haven't looked into the source code, I cannot judge. That said, the issue is taken care of again by following the fix of this issue.

jcguu95 avatar Aug 06 '20 02:08 jcguu95