Skip to content

Instantly share code, notes, and snippets.

@ZGainsforth
Created July 2, 2014 23:06
Show Gist options
  • Save ZGainsforth/fff6b334cadcb64ce9ff to your computer and use it in GitHub Desktop.
Save ZGainsforth/fff6b334cadcb64ce9ff to your computer and use it in GitHub Desktop.
Print an entire numpy array regardless of the current printoptions.
# 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