Ask Your Question
1

Access local Sage notebook online

asked 2014-11-15 07:38:10 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I am running Sage 6.3. I have used Sage for a while, and I open a session on my Linux box using

home@home:~$ sage notebook

which open at http://localhost:8080/home/admin/16/This means the notebooks I then write are saved in directory ~/.sage/sage_notebook.sagenb/home/ and I understand the command sage: notebook("path/to/directory") allows one to specify an alternative to the default directory, for example if you want to work out of Dropbox. I require a couple of clarifications:

  1. I cannot find .sws files in the default directory. I assume this is what I am looking for
  2. How does the online notebook link with my local setup. How do I get a username and password for this? Is there some way my local work can automatically sync with the online notebook, so it is like a cloud? Is this the purpose of the online notebook--please give a detailed explanation of the online notebook, and why does it have two different web URLs?
  3. Also note, I am aware of sagemathcloud, and I have found it slow and buggy in the past. I would prefer to use sagenb for the time being, although I would welcome criticism if this seems unwise. Once concern of mine is that the sagemathcloud does not use the same file extensions as sagenotebook (.sws)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-11-15 07:55:18 -0600

updated 2014-11-15 07:56:02 -0600

Hello,

Be careful that the Sage notebook might not be supported in the future. The reason is that there is now the IPython notebook that can be launched with

$ sage -notebook ipython

It is very much like the sage notebook except that currently there is no server mode (but several of them are in development).

To answer your questions:

  1. The worksheets are not saved as .sws but rather has a bunch of files. The .sws format is just an archive of these files. If you have a .sws file somwhere, you can look inside with

    $ tar xf my_file.sws

    and you can see that it matches the structure of what you have in ~/.sage/sage_notebook.sagenb/home/

  2. It would be hard to have two servers (in your case local and sagenb.org) sharing worksheets. Or at least, sagenb was not designed for that. Each server has its own administrator with his/her policy for logins/passwords. It seems that currently, you need to use an openid to log in: http://openid.net/. Be careful that it is not as nice as it sounds, open ID is not a free foundation. They provide an ID protocol in order to sell information of their users...

  3. Using the cloud is only relevant if you have a tremendous internet connection all the time.,

Vincent

edit flag offensive delete link more

Comments

Thanks. I am familiar with ipython notebook for writing python script. So I am happy to use this.

sav8i8 gravatar imagesav8i8 ( 2014-11-15 11:00:51 -0600 )edit

To be fair, you should be able to import .sws files to .sagews (SMC) files, though backwards might be a problem.

kcrisman gravatar imagekcrisman ( 2014-11-17 09:22:59 -0600 )edit

Also, to be complete, "download" for a worksheet should save a .sws file to wherever you have downloads configured to come in.

kcrisman gravatar imagekcrisman ( 2014-11-17 09:23:33 -0600 )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: 2014-11-15 07:38:10 -0600

Seen: 14,564 times

Last updated: Nov 15 '14