Cantor-SAGE: Display image

Uwe Fechner u.fechner at tudelft.nl
Wed Jun 8 20:29:33 CEST 2011


 Hello,

my current idea:
Modify Cantor in such a way, that it also monitors the "current
directory" for new graphic
files, and displays them.

But then I have some more questions:
- what is the best graphic format for the integration in Cantor documents?
- should pictures be re-sized? If yes, which is the best resolution?

Best regards:

Uwe Fechner

On 07.06.2011 19:52, Alexander Rieder wrote:
> On Tuesday 07 June 2011 17:10:04 Uwe Fechner wrote:
>>  Hello,
>>
>> I can display diagrams, using the plot command of sage from within
>> a cantor worksheet.
>>
>> But I did not find a way yet, to display an arbitrary image file within
>> the cantor worksheet.
>>
>> Has anybody an idea, how to do that?
>>
>> Best regards:
>>
>> Uwe Fechner
> Hi,
> I don't thing there is a clean way of doing this, as cantor only detects if 
> the command was a plot, by looking if there is a new file created in its temp 
> directory and then displays it (I didn't think there was any usecase for doing 
> anything else).
> As a veery dirty workaround you can just copy your image into sages temp 
> directory using something like "tmpfile=tmp_filename(); cp plt.png $tmpfile".
>
> best regards,
> Alexander Rieder
>
> _______________________________________________
> kde-edu mailing list
> kde-edu at mail.kde.org
> https://mail.kde.org/mailman/listinfo/kde-edu


-- 
----------------------------------------
Uwe Fechner, M.Sc.
Delft University of Technology
Faculty of Aerospace Engineering/ASSET
Kluyverweg 1,
2629 HS Delft, The Netherlands
Phone: +31-15-27-88902



More information about the kde-edu mailing list