Hello !

I have the following lines in my ~/.sage/init.sage file

from sage.misc.viewer import viewer
viewer.png_viewer('google-chrome')

the viewer.pdf_viewer method will let you change the default pdf viewer in 
Sage. It is all there:

http://www.sagemath.org/doc/reference/misc/sage/misc/viewer.html

Actually, it would be cool if you could remember where you went in our doc 
when you looked for this information. You could add a pointer toward this 
page, and it would help the next guy who meets the same problem. Perhaps in 
the doc of 'view', or in some other places ?..

Nathann

On Monday, December 15, 2014 1:17:54 PM UTC+5:30, Martin R wrote:
>
> Hi there!
>
> I posted this to sage-support, but got no reply.  However, it is a major 
> annoyance for me, and I cannot believe that there is no simple solution.  
> So, here goes:
>
> I'm using "view" to display my graphs and posets.  I would like to have it 
> run the viewer (xdg-open, which in the case at hand is evince) in the 
> background.  This is on a linux box, running sage 6.5.beta2 on lubuntu.  
> The strange thing is, on a different linux box, same sage version, it does 
> run in the background, except that I have kubuntu there!
>
> Or should I be using something else?
>
> sage: P = Posets.ChainPoset(3)
> sage: view(P)
>
> Many thanks!
>
> Martin
>  

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to