First time here? Check out the FAQ!

Ask Your Question
0

Date saved in Sage notebook not updated

asked 12 years ago

G-Sage gravatar image

updated 12 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 12 years ago

kcrisman gravatar image

updated 12 years ago

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.

Preview: (hide)
link

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 ( 12 years ago )

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 ( 12 years ago )

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: 12 years ago

Seen: 372 times

Last updated: Jun 22 '12