表示された要約ボックス,データ集合,その他のコンパクトな出力に保存される式の最大サイズをバイト数で指定する.
$NotebookInlineStorageLimit
表示された要約ボックス,データ集合,その他のコンパクトな出力に保存される式の最大サイズをバイト数で指定する.
詳細
- 要約ボックスは,完全な式の代りに関数名,アイコン,主な特性を表示するもので,SparseArray,TimeSeries,InterpolatingFunction等の関数で使われる.
- $NotebookInlineStorageLimitより小さい式の場合には式の完全なコピーが含まれ,入力として再利用できる.
- $NotebookInlineStorageLimitより大きい式の場合の要約ボックスは,式の完全なコピーは含まず,代りに,後で再利用するために式を保存するためのインターフェースが提供される.
- 式を作成したカーネルセッションがまだ実行されており,変数またはOut[n]のいずれかで式が参照できる間のみ,式をノートブックに埋め込むことができる.
- バージョン12.1より前のWolfram言語のバージョンとの互換性のために,$NotebookInlineStorageLimitの値には$SummaryBoxDataSizeLimitを使ってもアクセスできるようになっている.
例題
すべて開く すべて閉じる例 (2)
$NotebookInlineStorageLimitByteCount[SparseArray[{1, 2, 3, 4, 5}]] < $NotebookInlineStorageLimitSparseArray[{1, 2, 3, 4, 5}]Total[SparseArray[Automatic, {5}, 0, {1, {{0, 5}, {{1}, {2}, {3}, {4}, {5}}}, {1, 2, 3, 4, 5}}]]$NotebookInlineStorageLimitの値を小さくする:
$NotebookInlineStorageLimit = 100;ByteCount[SparseArray[{1, 2, 3, 4, 5}]] < $NotebookInlineStorageLimitしたがって,要約ボックスには式は保存されておらず,インターフェースが提供される:
SparseArray[{1, 2, 3, 4, 5}]このバージョンの要約ボックスは,単純にコピーして入力として使うことはできない:
Total[SparseArray[<5>, {5}]]要約ボックスをコピーして「今すぐ保存する」ボタンをクリックすると使用可能な入力が作成される:
Total[SparseArray[Automatic, {5}, 0, {1, {{0, 5}, {{1}, {2}, {3}, {4}, {5}}}, {1, 2, 3, 4, 5}}]]$NotebookInlineStorageLimitのデフォルト値を回復する:
$NotebookInlineStorageLimit = 2 ^ 20スコープ (5)
Datasetは$NotebookInlineStorageLimitを尊重する:
{Dataset[RandomInteger[1, {5, 2}]], Dataset[RandomInteger[1, {20000, 8}], MaxItems -> 5]}ByteCount /@ %InterpolatingFunctionのような数値関数は$NotebookInlineStorageLimitを尊重する:
{Interpolation[Range[10 ^ 2]], Interpolation[Range[10 ^ 5]]}ByteCount /@ %NearestFunctionも同じように動作する:
{Nearest[RandomReal[10, {1000, 3}]], Nearest[Flatten@ImagePartition[[image], 6]]}ByteCount /@ %要約ボックスを作成する配列タイプは$NotebookInlineStorageLimitを尊重する:
{SparseArray[Range[10 ^ 5]], SparseArray[RandomVariate[BinomialDistribution[1, 0.05], {10 ^ 5}]]}ByteCount /@ %{SymmetrizedArray[{{0, 5, 10}, {-5, 0, -7}, {-10, 7, 0}}], SymmetrizedArray[IdentityMatrix[10 ^ 4, SparseArray]]}ByteCount /@ %TimeSeriesのような統計関数は$NotebookInlineStorageLimitを尊重する:
{TimeSeries[RandomFunction[WienerProcess[], {0., 15, 0.0001}]], ExampleData[{"Statistics", "AirlinePassengerMiles"}, "TimeSeries"]}ByteCount /@ %WeightedDataも同様に動作する:
{WeightedData[{{1, 2}, {4, 5}, {5, 6}, {7, 3}}, {0.5, 0.25, 0.1, 1}], WeightedData[#, # ^ 2]&[RandomVariate[NormalDistribution[0, 1], 10 ^ 5]]}ByteCount /@ %GeoPositionは$NotebookInlineStorageLimitを尊重する:
{GeoPosition[RandomReal[{-90, 90}, {100, 2}]], GeoPosition[RandomReal[{-90, 90}, {100000, 2}]]}ByteCount /@ %アプリケーション (2)
$NotebookInlineStorageLimitを0に設定してノートブックの中にスペースを確保する:
$NotebookInlineStorageLimit = 0式を含まず c1のセルへの参照を保存する要約ボックスを作る:
DynamicWrapper[if = Interpolation[RandomReal[10, 500]], c1 = EvaluationCell[]]$NotebookInlineStorageLimitのデフォルト値を回復する:
$NotebookInlineStorageLimit = 2 ^ 20式を含み c2への参照を保存する if の要約ボックスを再構築する:
DynamicWrapper[if, c2 = EvaluationCell[]]ByteCount[NotebookRead[c2]] - ByteCount[NotebookRead[c1]]$HistoryLengthをゼロに設定してカーネルセッションのメモリを節約する:
$HistoryLength = 0;RandomFunction[BinomialProcess[1 / 3], {0, 50000}, 3]出力についての参照がないので,「今すぐ保存する」ボタンは使えない:
ByteCount[TemporalData[<<3>>]]別の要約ボックスを作る.しかし,結果は変数 data に保存する:
data = RandomFunction[BinomialProcess[1 / 3], {0, 50000}, 3]data がリセットされない限り,「今すぐ保存する」ボタンはちゃんと動作する:
ByteCount[TemporalData[«4»]]データが実際に$NotebookInlineStorageLimitより大きいことを確かめる:
ByteCount[data] > $NotebookInlineStorageLimit$HistoryLengthのデフォルト値を回復する:
$HistoryLength = ∞;特性と関係 (1)
$NotebookInlineStorageLimitは要約ボックスにしか影響しない:
$NotebookInlineStorageLimit = 0;Range[150]EventSeries[{1, 5, 11, 19}]$OutputSizeLimitはすべての出力に影響する:
$NotebookInlineStorageLimit = 2 ^ 20;
$OutputSizeLimit = 0;Range[150]EventSeries[{1, 5, 11, 19}]$OutputSizeLimit = 2 ^ 20;関連するガイド
テキスト
Wolfram Research (2020), $NotebookInlineStorageLimit, Wolfram言語関数, https://reference.wolfram.com/language/ref/$NotebookInlineStorageLimit.html.
CMS
Wolfram Language. 2020. "$NotebookInlineStorageLimit." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$NotebookInlineStorageLimit.html.
APA
Wolfram Language. (2020). $NotebookInlineStorageLimit. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$NotebookInlineStorageLimit.html
BibTeX
@misc{reference.wolfram_2026_$notebookinlinestoragelimit, author="Wolfram Research", title="{$NotebookInlineStorageLimit}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/$NotebookInlineStorageLimit.html}", note=[Accessed: 25-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_$notebookinlinestoragelimit, organization={Wolfram Research}, title={$NotebookInlineStorageLimit}, year={2020}, url={https://reference.wolfram.com/language/ref/$NotebookInlineStorageLimit.html}, note=[Accessed: 25-August-2026]}