Iconize

Iconize[expr]

gives an iconized form that can be used to stand in for expr in notebook input.

Iconize[expr,"name"]

displays with the specified name in the icon.

Details

  • The formatted output of Iconize[expr] will evaluate to expr when it is supplied as input.
  • It is common to evaluate Iconize[expr] using Evaluate in Place.
  • On many platforms, an expression selected in a notebook can be iconized using the Iconize menu item in the context menu for the selection.
  • An iconized form can be converted to standard form using Convert to StandardForm.

Examples

open allclose all

Basic Examples  (2)

Create an icon that holds the numbers 1 through 100:

In[1]:=
Click for copyable input
Out[1]=

The icon evaluates to the list when used as input:

In[2]:=
Click for copyable input
Out[2]//Short=

Create a named icon:

In[1]:=
Click for copyable input
Out[1]=

The icon can also be used as input:

In[2]:=
Click for copyable input
Out[2]=

Scope  (5)

Properties & Relations  (3)

Possible Issues  (1)

See Also

Interpretation  Defer  Thumbnail  Snippet  Short  Shallow  $OutputSizeLimit

Introduced in 2018
(11.3)