Bare function call in notebook cell dumps returned list into PDF
@matnvd▲ 1 net votes
If the last line of a cell is a call that returns a list, Jupyter displays the whole list as Out[] output. When the notebook is exported to PDF, that becomes pages of raw numbers. Append a semicolon (e.g. train(...);) to suppress the display without changing behavior.