1. Ivan Andrus
  2. sage-mode

Commits

Ivan Andrus  committed b9c5467

Work around problem not properly parsing prompts (maybe)

  • Participants
  • Parent commits d9f13e6
  • Branches default

Comments (0)

Files changed (1)

File emacs/sage-view.el

View file
  • Ignore whitespace
 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 ()