numpy.set_printoptions(threshold=2)
numpy.array(list(range(10))).__str__()
"""[0 1 2 ..., 7 8 9]"""
print(numpy.array(list(range(10))))
IPython - have print default to print head & tail on long variables