title: numpy: print array with indentation
body: <p>I would like to print <code>numpy</code> <code>array</code> with indentation for debugging.</p>
  
  <p>Say I have an <code>array</code> <code>a = numpy.array([[1,2,3,4], [5,6,7,8]])</code>, then simple <code>print(a)</code> will give</p>
  
  <pre><code>[[ 63 903 942 952]
   [185 332 511 893]]
  </code></pre>
  
  <p>Now if I put in <code>\t</code> in <code>print("\t" + str(a))</code>, then I get</p>
  
  <pre><code>    [[ 63 903 942 952]
   [185 332 511 893]]
  </code></pre>
  
  <p>while I want to have</p>
  
  <pre><code>    [[ 63 903 942 952]
       [185 332 511 893]]
  </code></pre>