[IPython-dev] Multiple outputs per input line
Mon Mar 14 13:44:01 CDT 2011
On 3/14/11 12:20 PM, Thomas Kluyver wrote:
> OK, once again, code:
> As Robert suggests, this keeps only the last of several outputs in Out / _oh in
> the user namespace, while keeping all outputs to be retrieved by %hist. Again,
> I've done fairly superficial tests.
I'm not sure what you are doing here. Out/_oh should be storing the actual
objects. The history should be storing the formatted text from the displayhook;
you should not try to use repr() on those objects afterwards. That records the
"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