NotebookPut

NotebookPut[expr]

creates a notebook corresponding to expr and makes it the currently selected notebook in the front end.

NotebookPut[]

creates a new empty notebook.

NotebookPut[expr,obj]

replaces the notebook represented by the notebook object obj with one corresponding to expr.

Details

  • NotebookPut is a low-level function that allows you to take a raw notebook expression in the kernel and make it an open notebook in the front end.
  • The expression expr should have head Notebook, and contain raw Cell objects, with boxes data.
  • NotebookPut returns a NotebookObject corresponding to the notebook it creates.
  • NotebookPut[expr,obj] overwrites whatever data was contained in the notebook represented by the notebook object obj. »
  • NotebookPut can take any notebook option. »

Examples

open allclose all

Basic Examples  (2)

Assign a generated notebook object to a symbol:

Rewrite the notebook content:

Options  (2)

Background  (1)

Set the background color:

WindowTitle  (1)

An explicit setting of WindowTitle is reflected in the name of the resulting notebook object:

Applications  (1)

Create a palette for generating a choice of new template notebooks using specific stylesheets:

Properties & Relations  (1)

NotebookPut and similar lowlevel functions require detailed specifications:

CreatePalette and other high-level notebook functions create the same result more easily:

Neat Examples  (1)

Create a staggered series of notebooks using Map and WindowMargins:

Wolfram Research (1996), NotebookPut, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookPut.html (updated 2007).

Text

Wolfram Research (1996), NotebookPut, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookPut.html (updated 2007).

CMS

Wolfram Language. 1996. "NotebookPut." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/NotebookPut.html.

APA

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

BibTeX

@misc{reference.wolfram_2024_notebookput, author="Wolfram Research", title="{NotebookPut}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/NotebookPut.html}", note=[Accessed: 18-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_notebookput, organization={Wolfram Research}, title={NotebookPut}, year={2007}, url={https://reference.wolfram.com/language/ref/NotebookPut.html}, note=[Accessed: 18-December-2024 ]}