[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-22 Thread William Stein

On Thu, Oct 22, 2009 at 6:27 PM, Bill Page  wrote:
>
> On Thu, Oct 22, 2009 at 8:06 PM, William Stein  wrote:
>>
>> Can you try version 0.3.6?
>>
>> sage -i 
>> http://sage.math.washington.edu/home/wstein/patches/sagenb/sagenb-0.3.6.spkg
>>
>
> Much better! I have not been able to re-create the edit problem I
> reported earlier after about an hour of trying. However I did notice
> (perhaps) a couple of other very difficult to reproduce things.
>
> At least two or three times I found myself in a situation where Sage
> seemed not to know the value of a previously computed variable. E.g.
> After running action Evaluate All, I choose some expresson inside the
> worksheet and expected to make a small change to a constant and then
> re-evaluate it by hitting control-shift. The result was "NameError:
> name 'A' is not defined". I repeated the Evaluate All and this time my
> new expression was evaluated - no problem... I have tried now for the
> last 1/2 hour but this did not re-occur.  I was working on several
> different worksheets but only one at a time during this test. So far I
> have not been able to determine if this was in any way dependent on
> the specific contents of the worksheets.
>
> Another thing that seems to be more reproducible: I can be entering
> new expressions at the end of a long worksheet and evaluating them
> one-by-one. Then suddenly and unexpectedly I find myself at the top of
> the worksheet. This happened randomly maybe 1 time out of 10.
>
> I suppose that this just shows how difficult it is to really test user
> interface software.

I suspect both of the problems you note above may not be new.
Anyway, many thanks for your bug reports though!

> Anyway, as I said the overall experience is much better, more
> reliable.   I would say that it is definitely ready for beta testing.

Excellent.

William

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-22 Thread Bill Page

> After running action Evaluate All, I choose some expression inside the
> worksheet and expected to make a small change to a constant and then
> re-evaluate it by hitting control-shift. The result was "NameError:
> name 'A' is not defined".

Of course I meant to write: "by hitting Shift-Enter"

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-22 Thread Bill Page

On Thu, Oct 22, 2009 at 8:06 PM, William Stein  wrote:
>
> Can you try version 0.3.6?
>
> sage -i 
> http://sage.math.washington.edu/home/wstein/patches/sagenb/sagenb-0.3.6.spkg
>

Much better! I have not been able to re-create the edit problem I
reported earlier after about an hour of trying. However I did notice
(perhaps) a couple of other very difficult to reproduce things.

At least two or three times I found myself in a situation where Sage
seemed not to know the value of a previously computed variable. E.g.
After running action Evaluate All, I choose some expresson inside the
worksheet and expected to make a small change to a constant and then
re-evaluate it by hitting control-shift. The result was "NameError:
name 'A' is not defined". I repeated the Evaluate All and this time my
new expression was evaluated - no problem... I have tried now for the
last 1/2 hour but this did not re-occur.  I was working on several
different worksheets but only one at a time during this test. So far I
have not been able to determine if this was in any way dependent on
the specific contents of the worksheets.

Another thing that seems to be more reproducible: I can be entering
new expressions at the end of a long worksheet and evaluating them
one-by-one. Then suddenly and unexpectedly I find myself at the top of
the worksheet. This happened randomly maybe 1 time out of 10.

I suppose that this just shows how difficult it is to really test user
interface software.

Anyway, as I said the overall experience is much better, more
reliable.  I would say that it is definitely ready for beta testing.

Regards,
Bill Page.

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-22 Thread William Stein

On Thu, Oct 22, 2009 at 10:05 AM, Bill Page  wrote:
>
> William,
>
> After upgrading to 'sagenb-0.3.5.spkg' I noticed a peculiar behavior.
> If I pick an old worksheet and do 'Evaluate All' everthing appears to
> work fine but sometimes (not entirely reproducible yet) I am no longer
> able to delete cells inside the worksheet. Also if I change the
> contents of a cell, clicking Evaluate (or shift-Enter)  does not
> replace the contents. But strangely everything still seems to work at
> the bottom of the worksheet. Restart Worksheet and Evaluate All does
> not correct the problem, but if I Save & Quit and then re-open the
> worksheet it is then ok.
>
> Have you seen anything like this?  Would you like me to try harder to
> produce a fully reproducible example?

Can you try version 0.3.6?

sage -i 
http://sage.math.washington.edu/home/wstein/patches/sagenb/sagenb-0.3.6.spkg

William

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-22 Thread William Stein

On Thu, Oct 22, 2009 at 10:05 AM, Bill Page  wrote:
>
> William,
>
> After upgrading to 'sagenb-0.3.5.spkg' I noticed a peculiar behavior.
> If I pick an old worksheet and do 'Evaluate All' everthing appears to
> work fine but sometimes (not entirely reproducible yet) I am no longer
> able to delete cells inside the worksheet. Also if I change the
> contents of a cell, clicking Evaluate (or shift-Enter)  does not
> replace the contents. But strangely everything still seems to work at
> the bottom of the worksheet. Restart Worksheet and Evaluate All does
> not correct the problem, but if I Save & Quit and then re-open the
> worksheet it is then ok.
>
> Have you seen anything like this?

Yes, I think I have.

>Would you like me to try harder to
> produce a fully reproducible example?

What happens if you refresh the page?
I'm guessing this is an issue with the auto-synchronization code.
Thanks for reporting it.

William

>
> Regards,
> Bill Page.
>
> On Thu, Oct 22, 2009 at 12:03 PM, William Stein  wrote:
>>
>> I expect you *will* find glitches, since this code hasn't been thoroughly 
>> tested,
>> so please report them, no matter how small.  Thanks!
>>
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-22 Thread Bill Page

William,

After upgrading to 'sagenb-0.3.5.spkg' I noticed a peculiar behavior.
If I pick an old worksheet and do 'Evaluate All' everthing appears to
work fine but sometimes (not entirely reproducible yet) I am no longer
able to delete cells inside the worksheet. Also if I change the
contents of a cell, clicking Evaluate (or shift-Enter)  does not
replace the contents. But strangely everything still seems to work at
the bottom of the worksheet. Restart Worksheet and Evaluate All does
not correct the problem, but if I Save & Quit and then re-open the
worksheet it is then ok.

Have you seen anything like this?  Would you like me to try harder to
produce a fully reproducible example?

Regards,
Bill Page.

On Thu, Oct 22, 2009 at 12:03 PM, William Stein  wrote:
>
> I expect you *will* find glitches, since this code hasn't been thoroughly 
> tested,
> so please report them, no matter how small.  Thanks!
>

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-22 Thread William Stein

On Thu, Oct 22, 2009 at 3:29 AM, Pablo Angulo  wrote:
>
>>
>> If you want to very easily try this new code (and everything else
>> we've done improving the new notebook in the last few days), just do
>> this:
>>
>>   sage -i http://wstein.org/home/wstein/patches/sagenb/sagenb-0.3.5.spkg
>>
> Everything smooth, including a feature I requested about a month ago.
> Thanks a lot for your awesome support.
> Will tell you if I find any glitches.

Please, please do.  I expect you *will* find glitches, since this code
hasn't been thoroughly tested, so please report them, no matter how
small.  Thanks!

William

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-22 Thread Pablo Angulo

>
> If you want to very easily try this new code (and everything else
> we've done improving the new notebook in the last few days), just do
> this:
>
>   sage -i http://wstein.org/home/wstein/patches/sagenb/sagenb-0.3.5.spkg
>
Everything smooth, including a feature I requested about a month ago.
Thanks a lot for your awesome support.
Will tell you if I find any glitches.

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-21 Thread mhampton

I have to agree on that.  A "double point" upgrade should mainly be
bug fixes, I think.  It would have made more sense to make this 4.2.

-Marshall

On Oct 20, 11:25 am, Nick Alexander  wrote:
> I am not passionate about this issue, but: why was such a large made
> from 4.1.1 -> 4.1.2?  Not even a "point" upgrade (4.1 -> 4.2), but a
> "double point" upgrade destroys backwards compatibility?  I question
> this decision.
>
> Nick
--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-21 Thread William Stein

On Wed, Oct 21, 2009 at 2:30 AM, Pablo Angulo  wrote:
>
> Oh, I see in your patch you've taken care of the title.
>

If you want to very easily try this new code (and everything else
we've done improving the new notebook in the last few days), just do
this:

  sage -i http://wstein.org/home/wstein/patches/sagenb/sagenb-0.3.5.spkg

If that causes problems, you can switch back with

  sage f sagenb-0.3.spkg

 -- William

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-21 Thread Pablo Angulo

Oh, I see in your patch you've taken care of the title.

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-21 Thread Pablo Angulo

The page title is also a bit different:

The old sage 4.1 format started with:

--
page title
system:sage

content...
--

while the new one takes the title from somewhere else and starts
directly with content. Then when a sage 4.1.2 worksheet.html is renamed
into worksheet.txt and opened in sage<=4.1.1, the first line becomes the
title and disappears from the content.

How would the new format in sage 4.2 be? Which would be the
compatibility diagram? Do you think the following is possible?:
sage <=4.1.1: reads 4.2 but not 4.1.2
sage 4.1.2:  reads <=4.1.1 and 4.2
sage 4.2: reads <=4.1.1 and 4.1.2

We're performing an installation right now for 40 computers and that
information would be very interesting.

Thanks!

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-21 Thread William Stein

On Wed, Oct 21, 2009 at 1:10 AM, William Stein  wrote:
> On Wed, Oct 21, 2009 at 12:52 AM, Pablo Angulo  wrote:
>>
>> I've made the following experiment:
>> * uncompress a sws file from sage 4.1.2
>> * rename worksheet.html into worksheet.txt
>> * compress it again
>> * open with sage 4.1
>>
>> It basically worked. Of course the new pickle file is not used, but the
>> core of the page remains. The output may be lost but we can "evaluate
>> all cells".
>>
>> Any thoughts?
>
> The above makes sense.  It sounds like I should change the sws format
> in the soon to be released sage-4.2 so that it is backwards
> compatible.  I'll likely
> do that right now.

Yes, this worked easily.  There is now a patch posted here:

http://trac.sagemath.org/sage_trac/ticket/7261

 -- William

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-21 Thread William Stein

On Wed, Oct 21, 2009 at 12:52 AM, Pablo Angulo  wrote:
>
> I've made the following experiment:
> * uncompress a sws file from sage 4.1.2
> * rename worksheet.html into worksheet.txt
> * compress it again
> * open with sage 4.1
>
> It basically worked. Of course the new pickle file is not used, but the
> core of the page remains. The output may be lost but we can "evaluate
> all cells".
>
> Any thoughts?

The above makes sense.  It sounds like I should change the sws format
in the soon to be released sage-4.2 so that it is backwards
compatible.  I'll likely
do that right now.

>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-21 Thread Pablo Angulo

I've made the following experiment:
* uncompress a sws file from sage 4.1.2
* rename worksheet.html into worksheet.txt
* compress it again
* open with sage 4.1

It basically worked. Of course the new pickle file is not used, but the
core of the page remains. The output may be lost but we can "evaluate
all cells".

Any thoughts?

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-20 Thread Nick Alexander


On 20-Oct-09, at 9:59 AM, Robert Bradshaw wrote:

>
> On Oct 20, 2009, at 5:38 AM, Pablo Angulo wrote:
>
>> The new sage version 4.1.2 introduces a new file format that is
>> incompatible with the previous one. If I use "download fo a file",
>> that
>> file can't be opened with sage 4.1.1 (viceversa works fine). Is there
>> any way to convert from the new to the old format?
>>
>> I expect a wave of problems as students install the new versions
>> downloaded from the web and try to use the files they modified at  
>> home
>> in our labs. We are unable at this point of upgrading all our
>> installations and, anyway, this would leave behind all the students
>> with
>> an earlier version.
>
> We make an effort to maintain backwards compatibility across versions
> of Sage, but this last update was a fairly large change (for the
> better) in the notebook.

I am not passionate about this issue, but: why was such a large made  
from 4.1.1 -> 4.1.2?  Not even a "point" upgrade (4.1 -> 4.2), but a  
"double point" upgrade destroys backwards compatibility?  I question  
this decision.

Nick

--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-20 Thread Robert Bradshaw

On Oct 20, 2009, at 5:38 AM, Pablo Angulo wrote:

> The new sage version 4.1.2 introduces a new file format that is
> incompatible with the previous one. If I use "download fo a file",  
> that
> file can't be opened with sage 4.1.1 (viceversa works fine). Is there
> any way to convert from the new to the old format?
>
> I expect a wave of problems as students install the new versions
> downloaded from the web and try to use the files they modified at home
> in our labs. We are unable at this point of upgrading all our
> installations and, anyway, this would leave behind all the students  
> with
> an earlier version.

We make an effort to maintain backwards compatibility across versions  
of Sage, but this last update was a fairly large change (for the  
better) in the notebook.

You can click on the "edit" button and copy the raw text format of the  
worksheet which will be compatible.

- Robert


--~--~-~--~~~---~--~~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---