[Numpy-discussion] How to control column for pretty print line wrap of ndarrays

Robert Kern robert.kern@gmail....
Wed Dec 22 15:52:08 CST 2010


On Wed, Dec 22, 2010 at 16:32, Ian Stokes-Rees
<ijstokes@hkl.hms.harvard.edu> wrote:
> Like most people these days, I have multiple 24" monitors.  I don't need
> "print" of ndarrays to wrap after 72 columns.  Is there some way to
> change this?

np.set_printoptions(linewidth=100)

-- 
Robert Kern

"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 NumPy-Discussion mailing list