Changes between Initial Version and Version 1 of Ticket #17284


Ignore:
Timestamp:
11/04/14 07:39:24 (5 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17284 – Description

    initial v1  
    44}}}
    55
    6 The following still works:
     6The following patch fixes the problem (but probably not in the correct way):
    77{{{
    8 sage: cube(viewer="tachyon").show()
     8#!diff
     9diff --git a/src/sage/repl/display/formatter.py b/src/sage/repl/display/formatter.py
     10index 670d208..a352a54 100644
     11--- a/src/sage/repl/display/formatter.py
     12+++ b/src/sage/repl/display/formatter.py
     13@@ -377,8 +377,6 @@ class SageConsoleTextFormatter(SagePlainTextFormatter):
     14         """
     15         from sage.structure.sage_object import SageObject
     16         if isinstance(obj, SageObject) and hasattr(obj, '_graphics_'):
     17-            gfx = obj._graphics_()
     18-            if gfx:
     19-                gfx.launch_viewer()
     20-                return ''
     21+            obj.show()
     22+            return ''
     23         return super(SageConsoleTextFormatter, self).__call__(obj)
    924}}}