[IPython-User] How to configure/control line width?
Jorge Scandaliaris
jorgesmbox-ml@yahoo...
Fri Mar 11 09:43:58 CST 2011
Hi all,
Is there a way to configure ipython so when numpy arrays are displayed ipython
would use all the available screen width?
Ipython seems aware of screen width as doing:
In [28]: print 'a'*200
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
uses the available width, but doing:
In [32]: a = np.ones((5,20))
In [33]: repr(a)
Out[33]: 'array([[ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1.,\n 1., 1., 1., 1., 1., 1., 1.],\n [ 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1.,\n 1., 1., 1., 1., 1.,
1., 1.],\n [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1.,\n 1., 1., 1., 1., 1., 1., 1.],\n [ 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1.,\n 1., 1., 1., 1., 1.,
1., 1.],\n [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1.,\n 1., 1., 1., 1., 1., 1., 1.]])'
does not. Is this behavior configurable/controllable?
Thanks
jorges
More information about the IPython-User
mailing list