({{, (RefLink[Notebook, paclet:ref/Notebook])[{(Subscript[cell, 1]),(Subscript[cell, 2]),…}]
is the low-level construct that represents a notebook manipulated by the Wolfram System front end. }})

OpenersNotesSection(Spacer1)Details

Notebook files contain explicit (RefLink[Notebook, paclet:ref/Notebook]) expressions written out in textual form.

You can manipulate open notebooks in the front end using standard commands in the front end, and using the Option Inspector.

Open notebooks in the front end are referred to in the kernel by (RefLink[NotebookObject, paclet:ref/NotebookObject]) constructs. You can use (RefLink[Options, paclet:ref/Options]) and (RefLink[SetOptions, paclet:ref/SetOptions]) to look at and modify options for open notebooks.

OpenersPrimaryExamplesSection(Spacer1)Examples  (7)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Use low-level (RefLink[Notebook, paclet:ref/Notebook]) and (RefLink[Cell, paclet:ref/Cell]) expressions to construct a notebook:

NotebookPut[Notebook[{Cell["head","Section"],Cell["text","Text"]}]];

OpenersExampleSection1(Spacer1)Scope  (3)

Use a (RefLink[Notebook, paclet:ref/Notebook]) expression for representing graphics:

NotebookPut[Notebook[{Cell[BoxData[GraphicsBox[DiskBox[{0,0}],ImageSize->Small]]]}]];

A (RefLink[Notebook, paclet:ref/Notebook]) expression for a two-dimensional input form:

NotebookPut[Notebook[{Cell[BoxData[SuperscriptBox["x","p"]],"Input"]}]];

A (RefLink[Notebook, paclet:ref/Notebook]) expression for text and a control object:

NotebookPut[Notebook[{Cell["Click OK to continue."],Cell[BoxData[ButtonBox["OK", ButtonFunction:>DialogReturn[],Evaluator->Automatic]]]}]];

OpenersExampleSection2(Spacer1)Options  (3)

OpenersExampleSubsection0(Spacer1)Background  (1)

Set a background color:

NotebookPut[Notebook[{Cell["a"],Cell["b"]},Background->Pink]];

OpenersExampleSubsection1(Spacer1)CellGrouping  (1)

Set to (RefLink[Manual, paclet:ref/Manual]) to allow arbitrary cell grouping arrangements:

NotebookPut[Notebook[{Cell[CellGroupData[{Cell["a"],Cell["b"]},Open]]},CellGrouping->Manual]];

OpenersExampleSubsection2(Spacer1)Editable  (1)

Set to (RefLink[False, paclet:ref/False]) to disable interactive changes:

nb=NotebookPut[Notebook[{Cell["a"],Cell["b"]},Editable->False]];

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[DocumentNotebook, paclet:ref/DocumentNotebook])  ▪  (RefLink[PaletteNotebook, paclet:ref/PaletteNotebook])  ▪  (RefLink[Cell, paclet:ref/Cell])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Notebooks as Wolfram Language Expressions, paclet:tutorial/NotebooksAsWolframLanguageExpressions])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Low-Level Notebook Structure, paclet:guide/LowLevelNotebookStructure])}, {▪(RefLinkPlain[Low-Level Notebook Programming, paclet:guide/LowLevelNotebookProgramming])}})}})