On Jul 23, 2011, at 7:55 PM, Owen Densmore wrote: > 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.
Are you planning to run sage notebook servers on all of those different machines? I'm wondering if it might not actually be better to run the server on one machine and just connect to that machine from the other places. I'm concerned that making changes on different machines could cause problems syncing but I have never used Dropbox, so I don't know. > 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. There isn't an option for that since I don't think it is very common to do. I could add a setting though, or an environment variable, or use the default arguments, if other people want it as well. I don't want to clutter up the interface if I don't have to though. You could just create a symlink and things should work fine. You could also edit Sage.app/Contents/Resources/start-sage.sh to pass the directory that you want. Of course you would have to do that every time you got a new version of Sage.app. > So is there a way to change the default notebook folder? Unfortunately not right now. -Ivan > 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 <jason-s...@creativetrax.com> > 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 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 sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org