I wanted to use sagemath straight in emacs instead of having a terminal open. I tried to use a shell (or eshell for that matters) in emacs and launch sage there, but every time I input a command, the ouput repeats this and then displays the result. Something like:
┌────────────────────────────────────────────────────────────────────┐ │ SageMath version 8.1, Release Date: 2017-12-07 │ │ Type "notebook()" for the browser-based notebook interface. │ │ Type "help()" for help. │ └────────────────────────────────────────────────────────────────────┘ sage: 2+2 sage: 2+2 4 sage: After a quick search on how to use sage in emacs, I found the neat sage-shell-mode. Installed it using MELPA (as recommended), but the problem is the same. I have no idea where it comes from and how to fix it.
N.B. when I use emacs shell (or eshell), I have no problem. When I use sage in a terminal, I have no problem. Only when I use sage in emacs (in a shell or using sage-shell-mode) I got the issue.
I'm using Emacs 25.2.2 and SageMath 8.1