On 9/14/07, Jonathan Bober <[EMAIL PROTECTED]> wrote:
> > This is actually an unrelated issue.  A user must have write permissions
> > to the *current* directory to run the notebook, since it stores its state
> > files in the current directory.  Try instead:
>
> I've noticed this before, but I've never really thought too much about
> it. Because of this, I've got sage_notebook directories sprinked
> throughout different random places on my machine, and it's a little
> annoying. (And I also think that it is a little "rude" of sage to do
> this without my knowlegde.)
>
> Is there a good reason that sage doesn't simply use the .sage directory
> that it creates under my home directory for this? If not, then I would
> like to call this a bug. And even if there is a good reason, then I
> still might like to call it a bug.

This is certainly not a bug because it was a conscious
design decision that a lot of people agree with
and really like.   The idea is that you start the SAGE notebook
in a directory where you have some project, and the worksheets
you get are exactly the ones related to that project.
For me this is by far the most natural and best way to work.
E.g., if I'm writing a book on the riemann hypothesis, my
src directory looks like this:

rh.tex     ... lots of stuff ..   sage_notebook

And if I think do

   sage -notebook

I get a notebook with all worksheets related to my work on
the Riemann Hypothesis book.

That said, I'm certainly interested in revisiting this design decision,
so if people have strong feelings pro or con, please speak up.

By the way, you could always write a script like this:
-----------------
#!/bin/sh
cd "$HOME"/.sage
sage -notebook    # or sage -inotebook
------------------

and the SAGE notebook run via that script
would then always use the version in .sage/.

Another point to make is that the other servers included
in Sage, e.g., wiki(), work the same way.  I.e., they
run from a local directory.


---------

Another point is that I often want to run separate
SAGE notebooks on the same computer, but
with completely different sets of worksheets.
I just do
   sage -notebook
from one project directory and
   sage -notebook
from another, and I'm good to go.

William

--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---

Reply via email to