[IPython-user] %ed returns "\n"
Fernando Perez
Fernando.Perez at colorado.edu
Fri Jan 27 18:56:44 CST 2006
Ville Vainio wrote:
> On 1/28/06, Fernando Perez <Fernando.Perez at colorado.edu> wrote:
>
>
>>It was to the guy who was using it to later say
>>
>>ed _12
>
>
> Ah, that use case.
>
> I would expect the display hook would be such that it would print:
>
> def f():
> ...
> ueotoeu
> uoou.
> .i
> [ output snipped; 185 more lines ]
_that_ would be nice. %whos uses the same technique to snip strings, there I
keep the beginning and end, I'd suggest doing something similar (also for
consistency across ipython). Not identical (whos truncates to a single line),
but similar enough that it 'feels right'. Whatever that is :)
f
More information about the IPython-user
mailing list