[IPython-dev] Multiple outputs per input line
Mon Mar 14 12:03:40 CDT 2011
On 3/14/11 12:01 PM, Brian Granger wrote:
>>> I think that would get quite difficult. Mathematica's notion of
>>> output is very specific and concrete (they basically trigger a
>>> displayhook on every assignment). Our notion of "output" now is very
>>> dynamic - especially when you mix multiple frontends into the picture.
>> Remember, we're talking here about the outputs that get produced by
>> the displayhook, for those we do have numbers we can track (because
>> they stem from sys.displayhook firing). You're completely correct
>> that we can't number display side effects, like print statements or
>> any of the products of the new display system. But the return value
>> of computations, which is what Out[N] contains, we can track.
> I am a bit confused then. I thought we had removed the possibility
> for displayhook to be called more than once per input. I seem to
> remember that you removed that when you were working on the input
> splitter and execution logic last summer. What am I missing. I do
> agree that it is a bit different if we are only talking about the
> displayhook part of the logic.
Well, if you removed it, it's back. Try it.
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the IPython-dev