Skip to content

Instantly share code, notes, and snippets.

@ZGainsforth
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save ZGainsforth/3a306084013633c52881 to your computer and use it in GitHub Desktop.

Select an option

Save ZGainsforth/3a306084013633c52881 to your computer and use it in GitHub Desktop.
Print a full numpy array
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