sagemath / sage-shell-mode

Emacs front end for SageMath
GNU General Public License v3.0
98 stars 16 forks source link

Sage Shell View disables alternative "viewers" #78

Open balbirthomas opened 9 months ago

balbirthomas commented 9 months ago

Enabling sage shell view using (add-hook 'sage-shell-after-prompt-hook #'sage-shell-view-mode) results in plots always being displayed as PNG images. For example even after toggling inline images (sage-shell-view-toggle-inline-plots) the images are displayed in a browser as a PNG instead of using the default threejs viewer. Specifying a viewer explicitly using viewer keyword argument of the plot or show command also does not make a difference, regardless of the choice of viewer. This breaks the behavior of a sage REPL.

This seems to have been a regression in recent versions of Sage shell view mode. It used to work just like the Sage REPL previously.