1 | initial version |
The reason is that the image is stored in a temporary subdirectory of your ~/.sage/temp
directory, but this temporary directory is removed when the execution of your abc.sage
scrupt is finished (the name of the directory depends on the process number that created it). So when your image viewer is launched, it cannot find it anymore. You can check this by adding the line:
sleep(100)
at the end of your abc.sage script, and your image viewer will have the time to get the image before it disapears.
You can also launch Sage and in the Sage command line, and then type:
sage: %runfile abc.sage
2 | No.2 Revision |
The reason is that the image is stored in a temporary subdirectory of your ~/.sage/temp
directory, but this temporary directory is removed when the execution of your abc.sage
scrupt script is finished (the name of the directory depends on the process number that created it). So when your image viewer is launched, it cannot find it anymore. You can check this by adding the line:
sleep(100)
at the end of your abc.sage script, and your image viewer will have the time to get the image before it disapears.
You can also launch Sage and in the Sage command line, and then type:
sage: %runfile abc.sage