WOLFRAM

$SummaryBoxDataSizeLimit
$SummaryBoxDataSizeLimit

As of Version 12.1 of the Wolfram Language, $SummaryBoxDataSizeLimit has been superseded by $NotebookInlineStorageLimit.

$SummaryBoxDataSizeLimit

specifies the maximum size in bytes of expressions that will be stored in displayed summary boxes.

Details

  • Summary boxes, which display the function name, an icon and key properties instead of the complete expression, are used by functions such as SparseArray, TimeSeries and InterpolatingFunction.
  • Summary boxes for expressions smaller than $SummaryBoxDataSizeLimit contain a full copy of the expression and can be reused as input.
  • Expressions larger than $SummaryBoxDataSizeLimit have summary boxes that do not contain a full copy of the expression, but provide an interface for storing the expression for later reuse.
  • The expression can only be embedded in the summary box while the kernel session that created it is still running and has a reference to the expression, either in a variable or Out[n].

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

The default value:

Out[1]=1

The byte count of this sparse array is less than this limit:

Out[2]=2

Therefore, the following summary box contains the complete expression:

Out[3]=3

This summary box can be copied and used as input:

Out[4]=4

Set $SummaryBoxDataSizeLimit to a small value:

The byte count of this sparse array is greater than this limit:

Out[2]=2

Therefore, the summary box does not store the expression, but provides an interface to do so:

Out[3]=3

This version of the summary box cannot be used as input by simply copying it:

Copying the summary and box and clicking the "Store now" button will create a usable input:

Out[5]=5

Restore the default value of $SummaryBoxDataSizeLimit:

Out[6]=6

Scope  (4)Survey of the scope of standard use cases

Numerical functions such as InterpolatingFunction respect $SummaryBoxDataSizeLimit:

Out[1]=1

Check the byte count of each expression:

Out[2]=2

NearestFunction behaves similarly:

Out[3]=3
Out[4]=4

Array types that produce summary boxes respect $SummaryBoxDataSizeLimit:

Out[1]=1

Check the byte count of each expression:

Out[2]=2

StructuredArray behaves similarly:

Out[3]=3
Out[4]=4

Statistical functions such as TimeSeries respect $SummaryBoxDataSizeLimit:

Out[1]=1

Check the byte count of each expression:

Out[2]=2

WeightedData behaves similarly:

Out[3]=3
Out[4]=4

GeoPosition respects $SummaryBoxDataSizeLimit:

Out[1]=1

Check the byte count of each expression:

Out[2]=2

Applications  (2)Sample problems that can be solved with this function

Save space in notebooks by setting $SummaryBoxDataSizeLimit to zero:

Out[1]=1

Create a summary box, which will not contain the expression, and save a reference to the cell in c1:

Out[2]=2

Restore the default value of $SummaryBoxDataSizeLimit:

Out[3]=3

Recreate the summary box for if, which now has the expression in it, and save a reference in c2:

Out[4]=4

Output cell c1 is about nine and a half kilobytes smaller than output cell c2:

Out[5]=5

Save memory in a kernel session by setting $HistoryLength to zero:

Create a large summary box, which will not be saved in the notebook:

Out[2]=2

Because there is no reference to the output, the "Store now" button cannot work:

Create another summary box, but save the result in the variable data:

Out[4]=4

As long as data is not reset, the "Store now" button will continue to work:

Out[5]=5

Verify that the data was in fact larger than $SummaryBoxDataSizeLimit:

Out[6]=6

Restore the default values of $HistoryLength:

Properties & Relations  (1)Properties of the function, and connections to other functions

$SummaryBoxDataSizeLimit only affects summary boxes:

Out[2]=2
Out[3]=3

$OutputSizeLimit affects all outputs:

Out[6]=6
Out[7]=7
Wolfram Research (2017), $SummaryBoxDataSizeLimit, Wolfram Language function, https://reference.wolfram.com/language/ref/$SummaryBoxDataSizeLimit.html.
Wolfram Research (2017), $SummaryBoxDataSizeLimit, Wolfram Language function, https://reference.wolfram.com/language/ref/$SummaryBoxDataSizeLimit.html.

Text

Wolfram Research (2017), $SummaryBoxDataSizeLimit, Wolfram Language function, https://reference.wolfram.com/language/ref/$SummaryBoxDataSizeLimit.html.

Wolfram Research (2017), $SummaryBoxDataSizeLimit, Wolfram Language function, https://reference.wolfram.com/language/ref/$SummaryBoxDataSizeLimit.html.

CMS

Wolfram Language. 2017. "$SummaryBoxDataSizeLimit." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$SummaryBoxDataSizeLimit.html.

Wolfram Language. 2017. "$SummaryBoxDataSizeLimit." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$SummaryBoxDataSizeLimit.html.

APA

Wolfram Language. (2017). $SummaryBoxDataSizeLimit. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$SummaryBoxDataSizeLimit.html

Wolfram Language. (2017). $SummaryBoxDataSizeLimit. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$SummaryBoxDataSizeLimit.html

BibTeX

@misc{reference.wolfram_2025_$summaryboxdatasizelimit, author="Wolfram Research", title="{$SummaryBoxDataSizeLimit}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/$SummaryBoxDataSizeLimit.html}", note=[Accessed: 27-April-2025 ]}

@misc{reference.wolfram_2025_$summaryboxdatasizelimit, author="Wolfram Research", title="{$SummaryBoxDataSizeLimit}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/$SummaryBoxDataSizeLimit.html}", note=[Accessed: 27-April-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_$summaryboxdatasizelimit, organization={Wolfram Research}, title={$SummaryBoxDataSizeLimit}, year={2017}, url={https://reference.wolfram.com/language/ref/$SummaryBoxDataSizeLimit.html}, note=[Accessed: 27-April-2025 ]}

@online{reference.wolfram_2025_$summaryboxdatasizelimit, organization={Wolfram Research}, title={$SummaryBoxDataSizeLimit}, year={2017}, url={https://reference.wolfram.com/language/ref/$SummaryBoxDataSizeLimit.html}, note=[Accessed: 27-April-2025 ]}