Ask Your Question
0

notebook default directory

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

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.

edit retag flag offensive close merge delete

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 ( 2013-06-13 16:26:46 +0100 )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 +0100 )edit

How do one go to close a thread?

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

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 ( 2013-06-14 13:43:05 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
2

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

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

Stats

Asked: 2013-06-13 15:43:44 +0100

Seen: 2,541 times

Last updated: Jun 13 '13