[IPython-dev] custom web notebook cells

Matthias BUSSONNIER bussonniermatthias at gmail.com
Tue Dec 18 12:44:09 EST 2012


Le 18 déc. 2012 à 14:50, Nicholas Bollweg a écrit :

> 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.
> 
The argument still apply for command line, but I had a prototype of webkit console, that is to say, looks like qtconsole, 
but edit in code mirror, Mathjax, iframes… etc. 

Qt webkit is painfully slow, never had the time to look at chromium embedded. 
-- 
M





> On Dec 18, 2012 8:26 AM, "Jason Grout" <jason-sage at creativetrax.com> wrote:
> On 12/18/12 6:16 AM, Nicholas Bollweg wrote:
> > Good brainstorming. I think as I*nb becomes more mainstream, we'll see
> > more code generators (or is it the other way?), so these are good things
> > to hash out now.
> >
> > Offsets are tricky... this would make it such that editing the cell
> > without %load_ext blockly is almost guaranteed to break it even if you
> > don't edit the blockly region's content.
> 
> The point is that CodeMirror keeps track of the offsets.  When a cell is
> loaded into the editor, all marks stored in the cell metadata are set
> and then Codemirror makes sure they follow the text.  When the cell is
> saved, the offsets are updated.  This could be a general mechanism using
> cell metadata for providing marked regions in cells, so we don't have to
> have a special extension loaded to load the marks and save them.
> 
> Thanks,
> 
> Jason
> 
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20121218/8c0fd71c/attachment.html>


More information about the IPython-dev mailing list