<div><br></div><div>However, this is only valid within IPython while just typing array names. For instance, running these lines revert the printing settings back to normal.</div><div><br></div><div>Is there a way to make this type of customized printing default for executing a file via Python? ie., can we replace python&#39;s print statement with pprint?</div>

<div><br></div><div>If not, should I edit numpy/core/arrayprint.py and use a pythonrc file to achieve the effect?</div><div><br></div><div>I am also interested in custom printing other data types than nd.arrays.</div><div>