[IPython-dev] Cell Magic names
Fernando Perez
fperez.net at gmail.com
Sat Jun 2 00:53:41 EDT 2012
On Fri, Jun 1, 2012 at 9:07 PM, Brian Granger <ellisonbg at gmail.com> wrote:
> I think there are two questions:
>
> * Will this actually break something?
Actually, no :) It's kind of sick, but it's fine from an
implementation perspective...
The magic dispatch mechanism simply looks up the block of characters
between the %% marker and the first space as a key in a dict. So
pretty much any non-whitespace string will do. MMh, I guess you could
use the empty string too, probably. Though that may be one loose
screw too many ;)
> * Is another name for this magic clearer?
I don't know, I kind of like it... But it may be too much cuteness in
the long run...
cheers,
f
More information about the IPython-dev
mailing list