[IPython-dev] Splitting input by AST nodes
fperez.net at gmail.com
Sun Apr 3 12:30:03 EDT 2011
On Sun, Apr 3, 2011 at 8:39 AM, Thomas Kluyver <takowl at gmail.com> wrote:
> To what extent is the contract set in stone? E.g. I don't think I can easily
> preserve the "if last block is two lines or less, run it interactively,
> otherwise, just run it in exec mode" behaviour. But I remember this was
> mentioned at Sage days, and someone put forward the suggestion that it would
> be more consistent to always run the last block interactively (which is
> probably what I'll implement).
No, that part of the 'contract' is totally flexible, and I actually
agree that the two-line heurisitc probably needs to go overboard.
What's not negotiable is the syntactic support for magics and other
special prefixes and transformations, as encoded by the tests in
More information about the IPython-dev