Last active
August 29, 2015 14:14
-
-
Save ZGainsforth/3a306084013633c52881 to your computer and use it in GitHub Desktop.
Print a full numpy array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def fullprint(*args, **kwargs): | |
| from pprint import pprint | |
| import numpy | |
| opt = numpy.get_printoptions() | |
| numpy.set_printoptions(threshold='nan') | |
| pprint(*args, **kwargs) | |
| numpy.set_printoptions(**opt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment