On Thu, Feb 17, 2011 at 4:24 AM, Pedro Cruz <[email protected]> wrote: > I'm writting an application were a person develops an algorithm using > the sage notebook (on his computer, for example). > > That algorithm will be developed inside a notebook cell. > > Then I would like to store that cell contents in a common database > automatically avoiding "cut/paste" to another place. > > I want to save the "textual" class definition (not the bytecode of > the python/sage class). > > Example: > > --cell start--- > class SomeClass: > def make(self): > print "do something" > > print THIS_CELL_STRING_CONTENT() #including this line > ----cell end---- > > Is there a command to get the "id" of current cell ?
sagenb.notebook.interact.SAGE_CELL_ID > Is there a command to read cell "id" contents (textual) ? I don't think so. The process that knows the cell contents is the notebook server; the process running the actual code doesn't know the contents of other cells, unfortunately. -- William > > Thanks, > Pedro > > -- > 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 > -- William Stein Professor of Mathematics University of Washington http://wstein.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
