Commits

Ivan Andrus committed b9c5467

Work around problem not properly parsing prompts (maybe)

Comments (0)

Files changed (1)

emacs/sage-view.el

 when `sage-view' mode is enabled and sage is running."
   (interactive)
   (setq sage-view-inline-output-enabled t)
-  (python-send-receive-multiline "pretty_print_default(True);"))
+  (sage-send-command "pretty_print_default(True);print('\\n')"))
 
 ;;;###autoload
 (defun sage-view-disable-inline-output ()
 when `sage-view' mode is enabled and sage is running."
   (interactive)
   (setq sage-view-inline-output-enabled nil)
-  (python-send-receive-multiline "pretty_print_default(False);"))
+  (sage-send-command "pretty_print_default(False);print('\\n')"))
 
 ;;;###autoload
 (defun sage-view-enable-inline-plots ()