Ask Your Question
1

Uploading and opening .sws file by click in the browser?

asked 2010-10-16 11:58:48 -0500

kkumer gravatar image

I have a lot of worksheet .sws files hyperlinked from a WWW page (plain page, not a Sage notebook). I would like to avoid going through the "save link to file" -> upload -> browse for file -> "upload to my notebook" procedure to look at each of those worksheets. Any ideas?

BTW, page is not exactly plain (one reaches it after some authentification) and .sws files are served by PHP script so this restricts possibilities. I assume one should write some script and tell Firefox to call this script for sws files, but I am not sure how to communicate with Sage notebook server.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2010-10-16 15:14:57 -0500

kcrisman gravatar image

If the link actually is a .sws file, you should be able to go to "Or enter the URL of a worksheet file on the web:" and put the link to the .sws file there. Have I interpreted your question correctly?

Ideally, we should also be able to take the link of a published Sage worksheet (as opposed to a .sws file) and put that in. Unfortunately, this is not (yet) possible. It should be a pretty trivial change in the notebook, but not for myself. If you have some ideas about how to make this easier, you should definitely put them on the sage-devel email list.

edit flag offensive delete link more

Comments

You may wish to follow the trac tickets #8473 and #9875 which will allow uploading of a sws file via script and "uploading" from a URL without downloading a sws.

Ivan Andrus gravatar imageIvan Andrus ( 2010-10-17 08:09:38 -0500 )edit

There is a patch up at #8473 to allow double clicking a sws file in OS X, and would allow running `sage --notebook upload=/PATH/TO/FILE` to open via script (e.g. on other platforms).

Ivan Andrus gravatar imageIvan Andrus ( 2011-01-10 05:35:44 -0500 )edit

This is now completely fixed in a prerelease of Sage, and the Mac version is pretty much done at #11026. Hooray! Of course, recall that the link should be pasteable already.

kcrisman gravatar imagekcrisman ( 2012-07-12 15:34:25 -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

Stats

Asked: 2010-10-16 11:58:48 -0500

Seen: 2,754 times

Last updated: Oct 16 '10