Created
July 2, 2014 23:06
-
-
Save ZGainsforth/fff6b334cadcb64ce9ff to your computer and use it in GitHub Desktop.
Print an entire numpy array regardless of the current printoptions.
This file contains 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
# implicit from numpy import * | |
def fullprint(*args, **kwargs): | |
from pprint import pprint | |
opt = get_printoptions() | |
set_printoptions(threshold='nan') | |
pprint(*args, **kwargs) | |
set_printoptions(**opt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment