On Dec 17, 2012, at 5:40 PM, Greg Minshall <minsh...@umich.edu> wrote:

> Ivan,
> 
> yes, downloading and installing the two patches for trac_11795 and then 
> configuring appropriately seems to work for DVI, PDF, and PNG.  (in case it 
> isn't obvious, i'm a sage newbie, so i'm not sure how to get sage to display 
> an html file, assuming the 'browser' entry is supposed to display html.)
> 
> a couple of comments about the patch (to the extent i understand it):
> 
> 1.  to override the default, i seem to need to define a function, and assign 
> that function to, e.g., sage.misc.viewer.dvi_viewer.  nicer (?) might be to 
> set some variable to '/sw/bin/xdvi'.

John answered this.

> 2.  if the function returns an invalid path for png_viewer, circle() fails 
> silently.  an error message, and then falling back to the default, might be 
> easier on users.  (this is probably outside the scope of this patch.)

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.

If you want to open a trac ticket that would be great, otherwise I'll get 
around to it eventually (probably not until after the holidays).

> and, of course, plot3d() still uses the Cocoa version of jmol.  (but, 3 out 
> of 4 isn't bad! ;-)

That's a good point.  Maybe plot3d should be reworked to tie into something 
like this. You can set viewer in the call to plot3d, but I'm not sure how to 
set the default.  If you would like you could open a ticket, or ask I can do it 
if you don't have a trac account and would rather not create one for some 
reason.

There is already http://trac.sagemath.org/sage_trac/ticket/9716

-Ivan

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


Reply via email to