On Wednesday 09 January 2008, bill purvis wrote: > On Wednesday 09 January 2008, William Stein wrote: > > On Jan 9, 2008 6:53 AM, Magnus <[EMAIL PROTECTED]> wrote: > > > First let me say that I am a sage-newbie. I work at a high-school in > > > Sweden as a math teacher. Our curriculum states that we are to teach > > > our students in the using of computer programs when solving math > > > problems. > > > > > > My problem is that our technicians (sp?) have succeded in installing > > > sage at an internal server at our school, but we have found no > > > information about how to create accounts other than the one admin > > > account that is created automaticly. Does anyone know any solution to > > > this problem? > > > > If you type > > > > sage: notebook? > > > > and read the help there is an option "accounts=True" > > which turns on letting users create accounts, e.g., > > > > sage: notebook(..., accounts=True) > > > > You could either (1) just leave that on, or (2) turn it on, create all > > accounts you > > want to have, and turn it off. > > > > This is obviously not the best solution -- we haven't had time to > > implement something better. Volunteers welcome! > > > > William > > I was about to ask the same question. Having read the info supplied by > 'notebook?' I decided to have a go. Logged in as Admin, I typed: > > nb = load('sage_notebook/nb.sobj') > > and got file not found. After some searching around I found 'sage_notebook' > in my ~/.sage directory, so I tried: > > nb = load('/home/bill/.sage/sage_notebook/nb.sobj') > > and got: > --------------------------------------------------------- > Exception (click to the left for traceback): > ... > zlib.error: Error -3 while decompressing data: incorrect header check > > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/home/bill/.sage/sage_notebook/worksheets/admin/4/code/2.py", line > 4, in <module> > nb=load(\u0027/home/bill/.sage/sage_notebook/nb.sobj\u0027) > > File > "/home/bill/maths/sage-2.9/local/lib/python2.5/site-packages/sympy/plotting >/", line 1, in <module> > > File "sage_object.pyx", line 443, in sage.structure.sage_object.load > File "sage_object.pyx", line 532, in sage.structure.sage_object.loads > File "sage_object.pyx", line 530, in sage.structure.sage_object.loads > zlib.error: Error -3 while decompressing data: incorrect header check > ------------------------------------------------------------------------ > Any suggestion as to what has gone wrong and how to get out of it? > > Bill
Oh, yes, and I meant to add - what is the last argument to add_user? I tried typing add_user? but as I don't have the right object to hang it onto it says it's undefined. The help info on notebook? just says nb.add_user("username","password","email-address","user") with no further explanation. The first 3 are fairly obvious but the last isn't. Bill -- +---------------------------------------+ | Bill Purvis, Amateur Mathematician | | email: [EMAIL PROTECTED] | | http://bil.members.beeb.net | +---------------------------------------+ --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---