Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

One option is to pass the directory argument to the notebook function on every startup:

sage: notebook(directory="/path/to/sagenb/data")

On the command-line, this would be:

$ sage --notebook "directory=/path/to/sagenb/data"

Note that Sage will add a ".sagenb" extension (if not present) to the given directory name and use that as the actual notebook data directory. So the above example would actually use (or create, if non-existent) the directory "/path/to/sagenb/data.sagenb".

Note that this is different from the ".sage" directory, which is located at "~/.sage" by default. To change this, set the "DOT_SAGE" environment variable. If you set this variable without passing the notebook directory argument above, the notebook files will appear in "${DOT_SAGE}/sage_notebook.sagenb".