Ask Your Question

notebook default directory

asked 2013-06-13 15:43:44 +0200

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 16:26:46 +0200 )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 19:08:30 +0200 )edit

How do one go to close a thread?

k1 gravatar imagek1 ( 2013-06-13 19:10:14 +0200 )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 09:57:08 +0200 )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 13:43:05 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-06-13 19:09:31 +0200

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 15:43:44 +0200

Seen: 2,268 times

Last updated: Jun 13 '13