Re: [sage-devel] Inserting Images into Notebook - upload dialog

2010-04-12 Thread William Stein
On Monday, April 12, 2010, Alec Mihailovs wrote: > On Apr 12, 8:43 am, Tim Joseph Dumol wrote: >> >> import shutil >> shutil.copy(DATA + 'myfilename.ext', '.') > > That could be done similarly without using DATA - as > > from shutil import copy > copy('/home/excetera.png', '.') > > Alec Using D

Re: [sage-devel] Inserting Images into Notebook - upload dialog

2010-04-12 Thread Tim Joseph Dumol
Hey Joal, I don't know of a more direct way, but this works: Just upload the file to the worksheet (under the Data menu, beside the Action menu), and then copy the file from the DATA directory to the cell directory. To do so, put this in a cell: import shutil shutil.copy(DATA + 'myfilename.ext',