[IPython-dev] custom web notebook cells

Nicholas Bollweg nick.bollweg at gmail.com
Tue Dec 18 08:50:01 EST 2012

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.
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20121218/eca70504/attachment.html>

More information about the IPython-dev mailing list