-
-
Notifications
You must be signed in to change notification settings - Fork 554
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #17284: Fix command-line plotting keywords
This should open a Tachyon-rendered plot (and this worked until very recently): {{{ sage: cube(viewer="tachyon") }}} The following patch fixes the problem (but probably not in the correct way): {{{ #!diff diff --git a/src/sage/repl/display/formatter.py b/src/sage/repl/display/formatter.py index 670d208..a352a54 100644 --- a/src/sage/repl/display/formatter.py +++ b/src/sage/repl/display/formatter.py @@ -377,8 +377,6 @@ class SageConsoleTextFormatter(SagePlainTextFormatter): """ from sage.structure.sage_object import SageObject if isinstance(obj, SageObject) and hasattr(obj, '_graphics_'): - gfx = obj._graphics_() - if gfx: - gfx.launch_viewer() - return '' + obj.show() + return '' return super(SageConsoleTextFormatter, self).__call__(obj) }}} URL: http://trac.sagemath.org/17284 Reported by: jdemeyer Ticket author(s): Volker Braun Reviewer(s): Steven Trogdon, Karl-Dieter Crisman, Jeroen Demeyer, Martin von Gagern
- Loading branch information
Showing
2 changed files
with
40 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters