Ask Your Question
1

Worksheets are always saved in Downloads in Linux. Can I change this?

asked 2016-08-05 21:32:36 +0200

ciric50 gravatar image

I'd like to keep worksheets in different directories and then point Sage to whatever one I'm working with. Is there a way to do this?

edit retag flag offensive close merge delete

Comments

Please edit your question to give more context. Are you downloading Sage Notebook worksheets as .sws files? What browser are you using?

slelievre gravatar imageslelievre ( 2016-08-09 21:23:20 +0200 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-08-06 15:07:09 +0200

kcrisman gravatar image

updated 2016-08-09 14:48:38 +0200

If you are using the sagenb Sage notebook, you can change the environment variable DOT_SAGE or even DOT_SAGENB; see this question.

The download functionality is completely separate from the storage. Notebooks are numbered, and live in a directory like .sage/sage_notebook.sagenb/home/admin/ (depending on your DOT_SAGE or DOT_SAGENB), listed by the number. Downloads will just go to whatever download directory your system prescribes, I guess.

edit flag offensive delete link more

Comments

Thanks. I tried setting DOT_SAGENB to a directory and restarted sage. In the sage notebook interface I named my notebook "raspberry" and saved it. When I look in that directory I see a new directory called sage_notebook.sagenb, but there is no file called "raspberry" anywhere in it or its subdirectories. If I do a download of the notebook and save to a file called "raspberry", I do see a new file called "raspberry.sws" but it is still in the ~/Downloads directory.

When notebooks are saved are they in a separate file with the same name as the notebook name? I searched for a file like that in numerous places and have never found one. Even with downloads I can't seem to get them to go where I want.

ciric50 gravatar imageciric50 ( 2016-08-09 14:07:24 +0200 )edit

Ah! I didn't realize that was your question.

kcrisman gravatar imagekcrisman ( 2016-08-09 14:46:42 +0200 )edit
1

That answered my question about storage. Thanks!

ciric50 gravatar imageciric50 ( 2016-08-09 22:07:33 +0200 )edit
1

answered 2016-08-09 21:22:16 +0200

slelievre gravatar image

I suppose you are using the Sage Notebook and not the Jupyter notebook, and you are downloading a Sage Notebook worksheeet as a .sws file.

This downloads the file to the default place where all your downloads go. You can set a preference in your browser for where to download stuff by default. You can also set a preference to ask you each time.

edit flag offensive delete link more

Comments

Ah, it's controlled by the browser. Didn't think of that. Thanks!

ciric50 gravatar imageciric50 ( 2016-08-09 22:08:31 +0200 )edit

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

Stats

Asked: 2016-08-05 21:32:36 +0200

Seen: 373 times

Last updated: Aug 09 '16