SciPy

scipy.sparse.dok_matrix.getmaxprint

dok_matrix.getmaxprint()[source]

Maximum number of elements to display when printed.