On Apr 23, 11:44 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > One could run the notebook from any directory ever since the > notebook was first released.
Well you could... but you would get import errors. I had a problem like this last year: http://osdir.com/ml/mathematics.sage.general/2006-10/msg00044.html > How do you start the notebook? Do you type "notebook()" from in SAGE > or do you type "sage -notebook" on the command line? If you start the > notebook > from the command line, you might just create a little shell script that cd's > to SAGE_ROOT and then runs "sage -notebook": > > cd /home/dfdeshom/custom/sage/ > ./sage -notebook I type "notebook()" at the command-line. Thanks, that is what I'll do. I like to have all my worksheets in one place. > At some point you must have typed notebook(system="gap") which sets > that copy of the notebook to create GAP worksheets by default. You can > also do notebook(system="maple") so that SAGE will create only maple > worksheets by default. Existing worksheets in the notebook aren't affected -- > just new ones use the given system (and always will in the future). This > is actually a pretty cool feature; my impression is that a lot of people use > SAGE mainly for this feature. Yes, I did try notebook(system="gap") about 1 month ago but it didn't work then. But I'm glad it is now! > Just try notebook(system="maple"). Actually anyone can easily make modes > for anything -- if you start sage after typing notebook(system="foo"), then > all input cells get passed to foo.eval(...) and the result gets > displayed. That's > it. So if you add a foo object with an eval method, you get the option of > a foo mode. E.g., Bobby Moretti easily made a jsmath mode this way; in > fact, > just try notebook(system="jsmath") to get jsmath notebooks. You can always > go from one mode to another in a given worksheet by putting %modename > at the top. Awesome! This should keep me away from other computer algebra systems' clunky interfaces. didier --~--~---------~--~----~------------~-------~--~----~ 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-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---
