[sage-support] Re: notebook: how store a cell contents in a database

2011-02-22 Thread Nils Bruin
On Feb 21, 1:53 am, Pedro Cruz wrote: > I'm going to add >         input += '_interact_.SAGE_CELL_BZ2TEXT=%r\n' % > bz2.compress(C.input_text()) > It uses bz2 because it's already on worksheet.py and to avoid > string_inside_string problems. You may want to consider input += '_interact_.SAGE_CEL

[sage-support] Re: notebook: how store a cell contents in a database

2011-02-21 Thread Pedro Cruz
I'm going to add input += '_interact_.SAGE_CELL_BZ2TEXT=%r\n' % bz2.compress(C.input_text()) to ~/sage/devel/sagenb/sagenb/notebook/worksheet.py in function start_next_comp() It uses bz2 because it's already on worksheet.py and to avoid string_inside_string problems. This delays

[sage-support] Re: notebook: how store a cell contents in a database

2011-02-18 Thread Jason Grout
On 2/17/11 10:09 PM, William Stein wrote: On Thu, Feb 17, 2011 at 4:24 AM, Pedro Cruz 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 st