Using Automatic Shortening...

Large outputs are automatically shortened. You can use the controls in a shortened output to show more or less of the result:

Click for copyable input

To set the size limit above which large outputs are shortened, click set size limit... in a shortened output or choose and select the Advanced tab. Enter the limit in bytes of the size of unshortened expressions:

  • The size limit refers to the number of bytes in the typeset form of the expression. An expression expr is shortened if ByteCount[ToBoxes[expr]] > size limit.

To Iconized Form Interactively...

To shorten a long expression or subexpression to an iconized form, select the expression and choose Iconize from the contextual menu:

  • In evaluation, Iconized expressions behave identically to their uniconized counterparts.
  • To un-iconize an expression, select it and choose Cell Convert To StandardForm ().

To Iconized Form Programmatically...

Use Iconize to create an iconized form of an expression:

Click for copyable input

Copy and paste the output to use the iconized form in other expressions:

Click for copyable input

Given an iconized expression an explicit name:


Preserve large data sets in notebooks in iconized form by wrapping the input expression with Iconize and evaluating in place:

  • Evaluate in Place is also in the contextual menu that pops up when you right-click the selection in an input expression.

By Number of Lines...

You can specify the approximate number of lines to display in an output using Short:

  • Short affects only the displayed form of the output. The result itself is not shortened.

By Number of Lines of Text...

Shorten long text outputs using Snippet:


By Expression Depth...

You can limit the expression depth displayed in an output using Shallow. Here is the tree structure of a nested expression:

Shallow chops branches of the expression tree that are at the specified depth:

  • Shallow affects only the displayed form of the output. The result itself is not shortened.