<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Le 18 déc. 2012 à 14:50, Nicholas Bollweg a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><p dir="ltr">maybe, but what about the qt console? command line? I guess I would rather have something that was a bit more explicit and durable. of course, the cm offsets would be totally clutch during live editing, as seeing the effects of your actions is a great way to learn.... Blocky goes out of its way to generate readable code.</p>

</blockquote><div>The argument still apply for command line, but I had a prototype of webkit console, that is to say, looks like qtconsole, </div><div>but edit in code mirror, Mathjax, iframes… etc. </div><div><br></div><div>Qt webkit is painfully slow, never had the time to look at chromium embedded. </div><div>-- </div><div>M</div><div><br></div><div><br></div><div><br></div><div><br></div><br><blockquote type="cite"><div class="gmail_quote">On Dec 18, 2012 8:26 AM, "Jason Grout" <<a href="mailto:jason-sage@creativetrax.com">jason-sage@creativetrax.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 12/18/12 6:16 AM, Nicholas Bollweg wrote:<br>
> Good brainstorming. I think as I*nb becomes more mainstream, we'll see<br>
> more code generators (or is it the other way?), so these are good things<br>
> to hash out now.<br>
><br>
> Offsets are tricky... this would make it such that editing the cell<br>
> without %load_ext blockly is almost guaranteed to break it even if you<br>
> don't edit the blockly region's content.<br>
<br>
The point is that CodeMirror keeps track of the offsets.  When a cell is<br>
loaded into the editor, all marks stored in the cell metadata are set<br>
and then Codemirror makes sure they follow the text.  When the cell is<br>
saved, the offsets are updated.  This could be a general mechanism using<br>
cell metadata for providing marked regions in cells, so we don't have to<br>
have a special extension loaded to load the marks and save them.<br>
<br>
Thanks,<br>
<br>
Jason<br>
<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</blockquote></div>
_______________________________________________<br>IPython-dev mailing list<br><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>http://mail.scipy.org/mailman/listinfo/ipython-dev<br></blockquote></div><br></body></html>