# 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!

Probably possible, but not necessarily yet. You may want to open a bug/feature issue at https://bitbucket.org/ddrake/sagetex/

Thanks, I'll try. I visited the link you indicated but it's not immediate for me to understand how to open an issue. As soon I have more time I'll definitely try!