Ask Your Question

Revision history [back]

Note that %attach also accept relative paths, so instead of changing where your files are, you can change where sage is started from. Assume that the sage command belongs to your path (e.g. by symlinking it from /usr/local/bin/sage), you just go to your favorite working directory and type:

sage: %attach my_file.sage

Depending on where you are, th following also works:

sage: %attach ../my_file.sage

Note that %attach also accept relative paths, so instead of changing where your files are, you can change where sage is started from. Assume that the sage command belongs to your path (e.g. by symlinking it from /usr/local/bin/sage), you just go to run sage from your favorite working directory and type:

sage: %attach my_file.sage

Depending on where you are, th following also works:

sage: %attach ../my_file.sage