Ask Your Question
1

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

asked 2016-08-05 14:32:36 -0500

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 14:23:20 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2016-08-06 08:07:09 -0500

kcrisman gravatar image

updated 2016-08-09 07:48:38 -0500

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 07:07:24 -0500 )edit

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

kcrisman gravatar imagekcrisman ( 2016-08-09 07:46:42 -0500 )edit
1

That answered my question about storage. Thanks!

ciric50 gravatar imageciric50 ( 2016-08-09 15:07:33 -0500 )edit
1

answered 2016-08-09 14:22:16 -0500

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 15:08:31 -0500 )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 14:32:36 -0500

Seen: 65 times

Last updated: Aug 09 '16