#13842: plotting (with custom PNG viewer as per trac 11795) can silently fail
--------------------------+-------------------------------------------------
   Reporter:  minshall    |             Owner:  was     
       Type:  defect      |            Status:  new     
   Priority:  minor       |         Milestone:  sage-5.6
  Component:  interfaces  |          Keywords:          
Work issues:              |   Report Upstream:  N/A     
  Reviewers:              |           Authors:          
  Merged in:              |      Dependencies:          
   Stopgaps:              |  
--------------------------+-------------------------------------------------
 hi.  with #11795 installed, misconfiguring the, e.g., PNG viewer causes a
 plot to fail silently.
 {{{
 #!python
 import sage.misc.viewer
 viewer.png_viewer('/x/y/display')
 circle((0,0), 1, rgbcolor=(1,1,0))
 }}}

 note the "e.g." above.  the same thing happens for PDF and DVI files.
 browser, on the other hand, reports an error:
 {{{
 sage: viewer.browser('/x/y/w3m')
 sage: tutorial()
 /Users/buildsage/src/import/sage/sage-5.4.1/local/bin/sage-native-execute:
 line 8: /x/y/w3m: No such file or directory
 }}}

 on the mailing list, Ivan Andrus commented thus:
 > That's true.  The function specifically sends all output to /dev/null,
 so there's probably some reason for doing that.  But we could at least use
 the exit status to print a warning that it might not work.

 (ps -- let me know about formatting, tagging, etc., mistakes i may have
 made.)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13842>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to