Ok i did:

from sage.misc.viewer import png_viewer

at the top of the file tachyon.py, and then in my code as you suggest, in 
Tachyon.show, i changed it from:

os.system('%s %s 2>/dev/null 1>/dev/null &'%(sage.misc.viewer.png_viewer(), 
filename))

to:

os.system('%s %s 2>/dev/null 1>/dev/null &'%(png_viewer(), filename))

and it works just fine. I never made any modifications to that line 
originally, so not sure why its stopped working... Works now though, thanks.


Or referring to changing it somewhere else? 
On Tuesday, August 19, 2014 8:40:52 PM UTC-7, Travis Scrimshaw wrote:
>
> Interestingly, i tried doing:
>>
>> from sage.misc.viewer import png_viewer
>>
>> first, but got the same error.
>>
>
> In your code, you just want `png_viewer`, not 
> `sage.misc.viewer.png_viewer` (which is what I suspect you had).
>
> Best,
> Travis
>
>

-- 
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