On Sat, Jul 2, 2011 at 9:33 AM, Christophe BAL <projet...@gmail.com> wrote: > Thanks. > > I'll try to do this as soon as possible. > > C.
You might find this 3-person student project from Math 480 that did *exactly* this relevant: http://wstein.org/edu/2011/480a/projects/juarez-sean_johnson-priya_chagaleti.zip Alexander Juarez, Priya Chagaleti, Sean Johnson: "Integrating a coding view to replace the current textfield and tiny MCE views" This is from the list here: http://wstein.org/edu/2011/480a/projects/ > > > 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+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 > -- William Stein Professor of Mathematics University of Washington http://wstein.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