Ask Your Question

notebook default directory

asked 2013-06-13 08:43:44 -0500

k1 gravatar image

I want to change the default directory of notebook. I've learned that I can run


to have sage save and open worksheets from that directory, but I generally run

sage -notebook

from terminal. Is there a way to change the default directory for sage? or run it in a directory directly from terminal?

PS: My main reason for doing this is to connect the sage to my Dropbox in order to have a backup of all my worksheets. I've recently lost a whole bunch of them due some problems.

edit retag flag offensive close merge delete



I think if you read `notebook?` in the command line you will see all the options. I think that you can just continue appending the options when doing `sage -n`. I think?

kcrisman gravatar imagekcrisman ( 2013-06-13 09:26:46 -0500 )edit

easy enough. Thanks for the help. I just used `sage -n '/home/k1/Dropbox/Math/Scripts/Sage'` and it worked.

k1 gravatar imagek1 ( 2013-06-13 12:08:30 -0500 )edit

How do one go to close a thread?

k1 gravatar imagek1 ( 2013-06-13 12:10:14 -0500 )edit

You don't have the "karma" yet to accept your own answer, probably, but it's okay - people will find it!

kcrisman gravatar imagekcrisman ( 2013-06-14 02:57:08 -0500 )edit

See also for another approach. (In fact, I think this question is basically a duplicate of that one.)

John Palmieri gravatar imageJohn Palmieri ( 2013-06-14 06:43:05 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-06-13 12:09:31 -0500

k1 gravatar image

Just wrote

sage -n 'directory'

and it worked.

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


Asked: 2013-06-13 08:43:44 -0500

Seen: 436 times

Last updated: Jun 13 '13