Return the current print options.
Dictionary of current print options with keys
For a full description of these options, see set_printoptions.
See also
These print options apply only to NumPy ndarrays, not to scalars.
Concurrency note: see Text formatting options
>>> import numpy as np
>>> np.get_printoptions()
{'edgeitems': 3, 'threshold': 1000, ..., 'override_repr': None}
>>> np.get_printoptions()['linewidth'] 75 >>> np.set_printoptions(linewidth=100) >>> np.get_printoptions()['linewidth'] 100
© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.4/reference/generated/numpy.get_printoptions.html