Stupid question: How do you directly load a .sobj file? This display problem seems to have actually gotten worse; now when I start up a brand-new notebook the problem appears right away. Upgrading to 2.5.3 didn't seem to help.
In case it helps at all, I have created a record of my entire notebook directory at: http://www.d.umn.edu/~mhampton/MySAGE3.zip When I execute the only command: show(line(((1,0),(0,1)))) the correct PNG file appears in the filesystem but nothing is displayed and I get the error (in the terminal): file not found [Errno 2] No such file or directory: 'Users/guest/ MySAGE/MySAGE3/worksheets/_scratch_/cells/0/sage0.png' nomad66-243.d.umn.edu - - [23/May/2007 10:58:35] "GET /Users/guest/ MySAGE/MySAGE3/worksheets/_scratch_/cells/0/sage0.png?1 HTTP/1.1" 404 - So it seems that something is stripping the leading / from the path. I'm quite puzzled by this and as to how it could have gotten worse. -Marshall Hampton On May 18, 12:03 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > On 5/18/07, Marshall Hampton <[EMAIL PROTECTED]> wrote: > > > > > Well, yeah, I'm sure it was dumb - my first guess was that the units > > were pixels - but I think the interesting thing is the subsequent > > effect on the worksheet. > > > I haven't found a simple reproducible version of my more serious, > > previous problem which corrupts the entire notebook. I have several > > worksheets that I would like to 'rescue' from that - how do I copy > > worksheets from one notebook to another? Can I just recursively copy > > the entire worksheet directory? I think I tried that once and it gave > > me problems. > > The worksheet directory is -- unfortunately -- not what defines the > worksheet. Can you view the worksheet and click "edit"? If so, you > can then just paste the result into another edit of another worksheet > in a different notebook. > > If this doesn't work for you, let me know. The notebook itself is stored > in nb.sobj in the notebook directory, and one can directly recover a > lot from it by simply directly loading it from Python command line. > > > While I am on the subject, I am wondering how to restore the sort > > of .sws files that one can save from the notebook. > > Just open any worksheet, then click the upload button in the upper > right of the notebook. (Yes, I know it is stupid that you have to open > a worksheet in order to upload one.) > > > > > > > Thanks, > > Marshall Hampton > > > On May 17, 11:18 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > > > On 5/17/07, Marshall Hampton <[EMAIL PROTECTED]> wrote: > > > > > I have a more reproducible version of this bug. If you execute the > > > > following three commands in seperate cells, you should see the sort of > > > > problem I am having: > > > > > show(line(((0,0),(1,1)))) > > > > > show(line(((0,0),(1,1))),figsize=[1280,800]) > > > > Gees -- that is crazy huge. A reasonable figsize would be > > > something like [8,5]. I think the units of figsize are something > > > like inches... You probably seriously exceeded the capacity > > > of SAGE/matplotlib or your browser by making such a large > > > figure. > > > > > show(line(((0,0),(1,1)))) > > > > > The middle command generates an error - I was originally trying to > > > > resize a more complicated figure and this syntax must be wrong. But > > > > then the show command won't work at all. Unlike my previous problems, > > > > however, stopping and restarting sage will fix this, as will creating > > > > a new worksheet. I sense they related somehow though. > > > > > M.Hampton > > > > > On May 16, 8:42 pm, Marshall Hampton <[EMAIL PROTECTED]> wrote: > > > > > I copied/pasted it from the notebook, so its not a typo. > > > > > > I opened it by navigating manually through the filesystem, but the > > > > > address is correct (with the leading /). > > > > > > I haven't had a problem of this type before, and I have done some very > > > > > similar things. The trouble began when I was writing some fairly > > > > > buggy code working on a PHCpack parser. The next time I have access > > > > > to that machine (probably Friday) I will start a completely new > > > > > notebook, since perhaps my messed up worksheet somehow 'infected' the > > > > > overall notebook (I did start new worksheets after the problems > > > > > started). I did quit out of sage and restart, but with the same > > > > > notebook command from my history. > > > > > > Marshall > > > > > > On May 16, 3:49 pm, "Justin C. Walker" <[EMAIL PROTECTED]> wrote: > > > > > > > On May 16, 2007, at 1:35 PM, Marshall Hampton wrote: > > > > > > > > I am having trouble getting the show() command to work in the > > > > > > > notebook. After the following commands: > > > > > > > > sage: a = [[[0.0, -1.0], [0.0, 1.0]], [[0.0, 1.0], [0.0, -1.0]]] > > > > > > > sage: pts3=[point((pt[0],pt[1])) for w1 in a for pt in w1] > > > > > > > sage: show(plot(pts3)) > > > > > > > > nothing happens. On the terminal display, it acts like the PNG > > > > > > > file > > > > > > > is not there: > > > > > > > > file not found [Errno 2] No such file or directory: 'Users/guest/ > > > > > > > MySAGE/MySAGE/worksheets/test/cells/1/sage0.png' > > > > > > > nomad66-243.d.umn.edu - - [16/May/2007 15:27:33] "GET > > > > > > > /Users/guest/ > > > > > > > MySAGE/MySAGE/worksheets/test/cells/1/sage0.png?1 HTTP/1.1" 404 - > > > > > > > It's odd that the two lines have slightly different filenames (no > > > > > > leading "/" in the first one). Did you type this or copy/paste? > > > > > > It's a silly question, but it helps to rule out some things (and you > > > > > > deserve an award of some type if you did type it in :-}) > > > > > > > Could be quirk of the logging function, or it could be an > > > > > > explanation... > > > > > > > The above works fine on my Mac (which doesn't help, of course). No > > > > > > spaces in the name, it appears. > > > > > > > Did you try opening the file by copy/pasting the name from the log > > > > > > to > > > > > > the terminal? > > > > > > > Justin > > > > > > > -- > > > > > > Justin C. Walker, Curmudgeon-at-Large > > > > > > () The ASCII Ribbon Campaign > > > > > > /\ Help Cure HTML Email > > > > -- > > > William Stein > > > Associate Professor of Mathematics > > > University of Washingtonhttp://www.williamstein.org > > -- > William Stein > Associate Professor of Mathematics > University of Washingtonhttp://www.williamstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---