I do not know the configuration file specifically for numpy, but if you use IPython, you can configure the profile so that these fingerprints are set automatically when you open a new IPython shell.
Create a new profile (you can omit the name to create a default profile)
$ ipython profile create fancyprint
Then edit the configuration file, which should be in ~/.config/ipython/profile_fancyprint/ipython_config.py
Uncomment this line:
And add the lines you want to execute at startup:
c.TerminalIPythonApp.exec_lines = [ 'import numpy as np', 'np.set_printoptions(threshold=np.NaN, precision=3, suppress=True, linewidth=180)' ]
Then you can run IPython with a named profile
$ ipython --profile=fancyprint
Array print options should be set automatically.
source share