Sorry, this content is no longer available

Ask Your Question
1

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

asked 14 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 14 years ago

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.

Preview: (hide)
link

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

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

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

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: 14 years ago

Seen: 3,407 times

Last updated: Oct 16 '10