Thanks. I'll try to do this as soon as possible.
C. 2011/7/2 Jason Grout <jason-s...@creativetrax.com> > On 7/2/11 4:28 AM, Christophe BAL wrote: > >> Hello. >> >> You're more than welcome to try replacing code cells with the >> current CodeMirror, for example, and evaluating how fast/reliable >> the notebook is then. Then please report your findings here, of >> course. >> >> >> Where I can do that ? Which file in >> /sage/devel/sagenb-main/build/**lib/sagenb/data/sage/html/**notebook/ is >> intersting for me ? >> > > Just FYI, I imagine that this is a nontrivial project, since textboxes and > CodeMirror have different ways of working. But I think the right place to > start is in the cell.py file: > > $SAGE_ROOT/devel/sagenb/**sagenb/notebook/cell.py > > In particular, look at the Cell class and the html method. That refers to > the template: > > $SAGE_ROOT/devel/sagenb/**sagenb/data/sage/html/**notebook/cell.html > > where the actual textarea is located for the cell definition. You could > start by inserting javascript there to change that textarea to a CodeMirror > object. > > It might also be helpful to look at the javascript file for the notebook: > > sage/devel/sagenb/sagenb/data/**sage/js/notebook_lib.js > > In particular, look at the functions that insert cells before and after > other cells (insert_new_cell_before and insert_new_cell_after). > > > Thanks, > > Jason > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to sage-support+unsubscribe@** > googlegroups.com <sage-support%2bunsubscr...@googlegroups.com> > 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 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