Ask Your Question

Where should I save my sage files?

asked 2016-09-15 13:25:44 +0200

dowewas2 gravatar image

I am new to using sage from the terminal. Is there an organized way to store .sage files to make it easy to load the file into the terminal. I would like to avoid retyping the whole path into the terminal.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-09-15 22:11:36 +0200

tmonteil gravatar image

updated 2016-09-15 22:53:41 +0200

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 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
edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2016-09-15 13:25:44 +0200

Seen: 428 times

Last updated: Sep 15 '16