DOC: limit code snippet output to max_rows=15
Merge pull request #5599 from y-p/PR_doc_set_max_rows

DOC: limit code snippet output to max_rows=15