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)

In[1]:=
Click for copyable input

Assign a generated notebook object to a symbol:

In[1]:=
Click for copyable input

Rewrite the notebook content:

In[2]:=
Click for copyable input

Options  (2)

Applications  (1)

Properties & Relations  (1)

Neat Examples  (1)

See Also

CreateWindow  CreateDocument  CreatePalette  CreateDialog  NotebookGet  NotebookOpen  Put  SendMail

Tutorials

Introduced in 1996
(3.0)
| Updated in 2007
(6.0)