I was able to get things working okay in my development version of sage,
the sage git repo at ~/sage , but when i try to do this:
sage: t = Tachyon()
sage: t.show()
in my system non development sage installation, i get the same error as
before? Im using sage 6.3. Im assuming my installations di
No that's correct. The difference is that my way imports the *function* as
oppose to the *module* given by John. This is a python thing, see
https://docs.python.org/3/reference/import.html for more details.
Best,
Travis
On Tuesday, August 19, 2014 9:24:16 PM UTC-7, Paul Graham wrote:
>
> Ok i
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 &'%
>
> 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 subscribe
Interestingly, i tried doing:
from sage.misc.viewer import png_viewer
first, but got the same error. But then i tried:
import sage.misc.viewer
and Tachyon.show works just fine now... So not sure what happened there.
On Saturday, August 16, 2014 9:22:23 PM UTC-7, Travis Scrimshaw wrote:
>
> You
You can also do "from sage.misc.viewer import png_viewer", but that's
mainly a stylistic difference.
Best,
Travis
> Looks like a bug. You should add a line "import sage.misc.viewer".
>
> --
> John
>
>
--
You received this message because you are subscribed to the Google Groups
"sage-dev
On Friday, August 15, 2014 10:35:48 PM UTC-7, Paul Graham wrote:
>
> Im working on ticket #16228: http://trac.sagemath.org/ticket/16228 , and
> now when trying to make doctests for both Tachyon..save and Tachyon.show, i
> recieve an error when trying to test Tachyon.show.
>
> Ive tried different