Ask Your Question
0

Date saved in Sage notebook not updated

asked 2012-06-22 11:06:02 +0100

G-Sage gravatar image

updated 2012-06-22 11:10:10 +0100

I am using Sage 5.0 on a server. I use the notebook with Firefox 13.

Last Friday, I updated some code in a file from a while ago. I saved it. Today, I was looking for it and couldn't find it. The reason is, the date never got updated. It still says it was last updated 109 days ago and it's toward the bottom of the list of Active Worksheets. But, I opened it and it has the updates I made last week.

So, it's not a huge deal for me. I found it and my work is saved. But, just putting this out there in case it is a problem. Has any one else ever experienced this?

Just in case your first thought is, "Are you sure you updated it?", I know I did because one line of code I remember copying from another worksheet just last Friday. I hadn't even written the code I copied from 109 days ago. And, I ended my code with

for v in stuff:
    # Figure out what stuff is

and then on the bus ride home, I figured out what stuff should be.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-06-22 11:50:06 +0100

kcrisman gravatar image

updated 2012-06-22 11:51:08 +0100

I hate to ask this, but did you evaluate the new code? As far as I can tell, the worksheet only updates the timestamp when at least one cell is evaluated. The fact that you ended your code with something that would have given an error if evaluated makes this plausible.

For instance, if I don't remember what worksheet some example is in, and I don't want those worksheets to move to the top, I'll often just open them, but not evaluate. But if there's an %auto cell, then they always update the time. Similarly, I can make as many changes in the TinyMCE stuff (comments between computation cells) as I want, and it never seems to update the time, even though I do save it.

If that's not it, then I don't know. It certainly doesn't happen very often then.

edit flag offensive delete link more

Comments

It's definitely possible that I didn't evaluate the new code. But, the date stamp says last edited, not last evaluated. So, I guess it is wrong. I guess I have noticed this myself with the %auto. Even when I don't edit anything, and I hit discard and quit, they end up at the top.

G-Sage gravatar imageG-Sage ( 2012-06-22 11:53:47 +0100 )edit

Ah, yes, you are probably right about that. Maybe you can open an issue at https://github.com/sagemath/sagenb/issues?state=open for this? Though I don't know if the solution is to change the name or to change the behavior...

kcrisman gravatar imagekcrisman ( 2012-06-22 12:00:12 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-06-22 11:06:02 +0100

Seen: 334 times

Last updated: Jun 22 '12