On Tue, 24 Oct 2006 21:06:57 -0500, Didier Deshommes <[EMAIL PROTECTED]>
wrote:
>
> Hello all,
> I'm trying to familiarize myself with the notebook but I can't seem to
> get it going. I start the server with:
> notebook(address='127.0.0.1')
>
> I go to the webpage and enter:
>
> 2+2
> and get:
>
> Traceback (most recent call last):
>
> os.chdir("/home/dfdeshom/custom/sage-1.4/devel/sage-test/sage_notebook/worksheets/_scratch_/cells/0"\
> )
> NameError: name 'os' is not defined
> THERE WAS AN ERROR LOADING THE SAGE LIBRARIES. Try starting SAGE from
> the command line to see what
> the error is.
>
> Starting it from the command line works flawlessly. What am I doing
> wrong? I am using Ubuntu Linux and SAGE 1.4
I have absolutely no idea. That error means that when sage tries to
run another copy of sage, it fails at startup. I've never once not
seen the same behavior when I tried to start SAGE from the command
line. Ideas:
(1) Try "!sage" from the "sage: " command prompt. Does it work fine?
(2) Just do "notebook()" so it listents on localhost.
(3) From the SAGE command line, try
sage: s = Sage()
sage: s('2+2')
This creates an interface to SAGE from SAGE (just like the interfaces
from SAGE to mathematica, singular, etc.) This is a key part of how
the notebook is implemented.
William
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-forum
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---