Hmm.  That seems like a bug to me.

In fact, there is trac issue #11795 [1] which addresses this.  It changes the 
interface for setting the different viewers and also fixes this particular bug. 
 I would definitely suggest trying it out and making any comments on the ticket 
about how it works, especially if there are things that still don't work.  It 
was updated in the last 12 hours, so people are working on it.

-Ivan

[1] http://trac.sagemath.org/sage_trac/ticket/11795

On Dec 17, 2012, at 3:39 AM, Greg Minshall <[email protected]> wrote:

> Ivan,
> 
> if i set the variables by leaving BROWSER='sage-open' (default value), but 
> changing PNG_VIEWER to /sw/bin/display, then try to plot a circle from the 
> tutorial (circle((0,0), 1, rgbcolor=(1,1,0))), i get a native-mac application 
> (Preview) displaying the resulting png file.
> 
> otoh, if i change *just* BROWSER to '/sw/bin/display' and redraw the circle, 
> i get ImageMagick's x11 display(1)
> displaying the resulting PNG file.
> 
> that seems unexpected to me.
> ----
> On Sunday, December 16, 2012 8:31:38 AM UTC-5, Ivan Andrus wrote:
> You can set sage.misc.viewer.BROWSER, PDF_VIEWER, DVI_VIEWER, and PNG_VIEWER. 
>  I think BROWSER is the fall back if the others aren't set.  They should be 
> the path to a script or other executable to open the proper type.  e.g. xpdf, 
> xdvi, evince, or whatever.  I'm not sure if that will get all the possible 
> cases, but it's a start.  Anything it doesn't get could possibly be 
> considered a bug.  You can set them in ~/.sage/init.sage
> 
> -Ivan
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> Visit this group at http://groups.google.com/group/sage-support?hl=en.
>  
>  

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


Reply via email to