Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Notebooks and Documents > Low-Level Notebook Programming > NotebookGet >

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.
  • 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.
First create a small sample notebook to operate on:
Get the notebook expression of the small sample notebook:
First create a small sample notebook to operate on:
Get the notebook expression of the small sample notebook:
In[2]:=
Click for copyable input
Out[2]=
Find subsection titles:
Change Subsection-style cells to Section style:
NotebookRead reads only the selected part of a notebook:
NotebookGet always gets the whole notebook:
New in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF