# Caching sagetex results

Is there a way to cache computations already done in a latex file using sagetex so that, for example, if I add a Sage code line in foo.tex when I run sage foo.sagetex.sage the computation starts from that line and not from the beginning?

The best thing would be that when one uses sagetex, Sage remembers what formulas are already computed and stored in foo.sout, and recomputes them only when they are modified. Do you think it's possible?

Thanks!

edit retag close merge delete