The performance of comint is not good when handling outputs of some REPL. Is there a way to connect to some REPL outside Emacs and let result display there, like in a terminal/browser/something else?
(I also tried to eval Python code in vscode, their REPL 'running inside the editor' is handling outputs much more efficiently. Maybe they use something like comint in
vscode or maybe not.)