Ask Your Question
0

notebook default directory

asked 11 years ago

k1 gravatar image

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

notebook("directory")

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.

Preview: (hide)

Comments

1

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 ( 11 years ago )

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

k1 gravatar imagek1 ( 11 years ago )

How do one go to close a thread?

k1 gravatar imagek1 ( 11 years ago )
1

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

kcrisman gravatar imagekcrisman ( 11 years ago )

See also http://ask.sagemath.org/question/1576/running-sage-with-files-on-dropbox for another approach. (In fact, I think this question is basically a duplicate of that one.)

John Palmieri gravatar imageJohn Palmieri ( 11 years ago )

1 Answer

Sort by » oldest newest most voted
2

answered 11 years ago

k1 gravatar image

Just wrote

sage -n 'directory'

and it worked.

Preview: (hide)
link

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 11 years ago

Seen: 2,714 times

Last updated: Jun 13 '13