Shorten outputs for better display on nbviewer