[IPython-user] %ed returns "\n"
vivainio at gmail.com
Fri Jan 27 18:26:16 CST 2006
On 1/28/06, Matt Wilkie <maphew at gmail.com> wrote:
> As of ipy .7 and .7.1 whenever I use %ed the output has embedded
> newlines. Is this the intended behaviour?
Yes. It's the "return value" of %ed, and hence rendered in a repr format.
I've been thinking of a fun hack; perhaps we should derive a
"hiddenstr" from str and return strings we don't want to display (or
display in a heavily abbreviated form) as that type. Then nobody apart
from ipython display hook will know better, thinking it's a plain old
Ville Vainio - http://tinyurl.com/2prnb
More information about the IPython-user