Mathematica > Notebooks and Documents > Low-Level Notebook Programming >

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.
  • 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[expr, obj] overwrites whatever data was contained in the notebook represented by the notebook object obj.  »
New in 3 | Last modified in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team