Hi Jason, thanks for the prompt reply.
I was mainly concerned that I saw several apparently incorrect statements
when using the "help" link within the notebook page, then using the tutorial
from there. For example: on page
http://localhost:8000/doc/live/tutorial/interactive_shell.html, the server
state files are here: HOME/.sage/sage_notebook .. but that's changed to
HOME/.sage/sage_notebook.sagenb.
But then the reference, Configure and Start a Notebook Server, seems to have
it right.
It also mentions these files being created there:
nb.sobj (the notebook SAGE object file)
objects/ (a directory containing SAGE objects)
worksheets/ (a directory containing SAGE worksheets).
.. but I didn't see them. Worksheets for example seem to be
HOME/.sage/sage_notebook.sagenb/home/admin/0/worksheet.html
Not a problem, but just made me presume other problems might exist.
But lets get to what I need to do initially for this stunt with the Machine
Learning book.
First, I need to move my notebook folder to a Dropbox folder so that my
various systems can all edit the same worksheets. (Dropbox is a seriously
useful system when you have a MacBook, MacMini, MacBookAir and iPad all
being used for programming!). The docs say I can simply start a new
notebook from a terminal session by:
sage> notebook(directory)
But I think that means I would have to do that every launch of the notebook
server.
I looked in the notebook launched by the server for changing the default
notebook/worksheet directory, and also in the Mac Sage.app's preferences but
didn't find it. Possibly I can just move the ~/.sage directory, leaving a
symlink behind? The important idea is to permanently set the notebook
folder to be in Dropbox without having to start a sage terminal session and
use the notebook(dir) command.
So is there a way to change the default notebook folder?
Second, I will be using several datafiles for analysis. Presumably I can
drop them in the worksheet directory via the "Data" drop-down menu. But
then I would like to "publish" it to my http://sagenb.org/ account. Does
the upload process from sagenb.org include uploading all the datafiles I've
added to my localhost server's worksheet?
Thanks for the help,
-- Owen
On Fri, Jul 22, 2011 at 10:04 PM, Jason Grout
<[email protected]>wrote:
> On 7/22/11 3:33 PM, Owen Densmore wrote:
>
>> What is the best documentation for notebooks, specifically the worksheet
>> format? I found
>> http://www.sagemath.org/doc/**reference/notebook.html<http://www.sagemath.org/doc/reference/notebook.html>but
>> it seems to be oriented toward the developer of worksheets, not users.
>>
>> I've tried things like "help" on the worksheet and it gives me out of
>> date information, or so it seems. Example: #auto vs %auto for auto
>> evaluation of a cell.
>>
>
>
> Feel free to ask here. You should use %auto, which is consistent with the
> other beginning-of-cell directives (#auto is old and should be deprecated,
> if it's not already).
>
> Other than the %auto/#auto, I think the help link in the notebook should be
> fairly up to date. Did you have any other questions about something that
> was confusing?
>
>>
>> I'm using 4.7, downloaded to my Mac, snow leopard, with the .app version.
>>
>> FYI: I'm trying to implement a chapter of a book, Machine Learning by
>> Marsland, which uses Python, Numpy & Matplotlib. I'd far rather use
>> Sage, especially with worksheets, so I can share with folks I work with.
>> I'm working locally initially and then plan to upload to a sagenb
>> server. This includes datafiles and python/sage files as well as the
>> inline python code in the worksheets. I hope this is the way Sage
>> intends me to use worksheets!
>>
>
> Awesome! We'd love to see this when you want to show it!
>
> Jason
>
>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to sage-support+unsubscribe@**
> googlegroups.com <sage-support%[email protected]>
> For more options, visit this group at http://groups.google.com/**
> group/sage-support <http://groups.google.com/group/sage-support>
> URL: http://www.sagemath.org
>
--
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-support
URL: http://www.sagemath.org