NotebookGet

NotebookGet[obj]

gets the raw expression corresponding to the notebook represented by the notebook object obj.

NotebookGet[]

gets the raw expression corresponding to the currently selected notebook.

Details and Options

  • NotebookGet allows you to take a notebook that is open in the front end, and get the raw expression corresponding to it in the kernel.
  • NotebookGet returns an expression with head Notebook, containing Cell expressions and boxes data.
  • NotebookGet[NotebookOpen[file]] returns the same expression as Get[file].

Examples

open allclose all

Basic Examples  (1)

First create a small sample notebook to operate on:

In[1]:=
Click for copyable input

Get the notebook expression of the small sample notebook:

In[2]:=
Click for copyable input
Out[2]=

Applications  (1)

Properties & Relations  (1)

See Also

NotebookImport  NotebookOpen  NotebookPut  NotebookRead

Tutorials

Introduced in 1996
(3.0)