Skip to content

Runs very slow and cannot reuse session in my setting #8

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

Open
jcguu95 opened this issue Aug 2, 2020 · 3 comments
Open

Runs very slow and cannot reuse session in my setting #8

jcguu95 opened this issue Aug 2, 2020 · 3 comments

Comments

@jcguu95
Copy link

jcguu95 commented Aug 2, 2020

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
Copy link
Author

jcguu95 commented Aug 5, 2020

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 jcguu95 closed this as completed Aug 5, 2020
@jcguu95 jcguu95 reopened this Aug 6, 2020
@jcguu95
Copy link
Author

jcguu95 commented Aug 6, 2020

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

@jcguu95
Copy link
Author

jcguu95 commented Aug 6, 2020

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.

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

1 participant