[IPython-dev] Template cells
jason-sage at creativetrax.com
Sat Dec 15 16:25:19 EST 2012
On 12/15/12 2:19 PM, Matthias BUSSONNIER wrote:
> Le 15 déc. 2012 à 22:09, Nicholas Bollweg a écrit :
>> I'm not sure if you meant we should form a valid execute request, but I
>> think we should definitely *not* construct a string which is an execute
>> request (i.e., we should not be constructing python code in the
>> To clarify: is it a Bad Thing to be editing the contents of a CodeCell with an interactive widget? Kinda planning on doing this with the Blockly extension i am working on.
> I think there is a fundamental difference which is that here you want to write a widget for a language that is **by definition** a graphic language.
> So generating code from that is unavoidable.
Yes, I think there's a difference between having a graphical
representation for code (see my other email on the custom web
cells---I'd *love* to see graphical widgets that represent code) and
manipulating and escaping a text string to be valid python code.
Hmmm...or am I contradicting myself? Would it be better to send a JSON
representation of the blockly cell to the kernel in a special message
that means "here is a blockly description; make a Blockly object that
has a .__call__ attribute and call it" and have the kernel generate the
More information about the IPython-dev