SciPy

scipy.sparse.spmatrix.getmaxprint

spmatrix.getmaxprint()[source]

Maximum number of elements to display when printed.