SciPy

scipy.sparse.dia_matrix.getmaxprint

dia_matrix.getmaxprint()[source]

Maximum number of elements to display when printed.