CreateNotebook

CreateNotebook[]

creates a generic empty notebook and opens it in the front end.

CreateNotebook["type"]

creates an empty notebook of the specified type and opens it in the front end.

CreateNotebook["type",obj]

replaces the notebook represented by the notebook object obj by a version converted to be of the specified type.

Details and Options

  • Possible notebook types include:
  • "Default"default generic notebook with no attached tools
    "DataResource"notebook for submitting resource objects
    "Demonstration"notebook for creating a Demonstration
    "SlideShow"notebook for creating a slideshow
    "Template"template notebook with authoring toolbar
    "Testing"notebook for creating verification tests
  • CreateNotebook allows any notebook option to be given.
  • CreateNotebook returns a NotebookObject corresponding to the notebook it creates.
  • CreateNotebook[type,obj] modifies the contents of obj.
  • CreateNotebook[{"SlideShow",theme}] creates a slideshow with the specified theme. Available themes include "Default", "Garnet", "Earth", "Sapphire", "Opal", "Sunrise", "Steel", and "Water".

Examples

open allclose all

Basic Examples  (2)

Create a new, empty notebook:

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

Create a template notebook:

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

Scope  (2)

See Also

CreateDocument  New  NotebookOpen  NotebookTemplate  NotebookImport

Introduced in 2014
(10.0)
| Updated in 2017
(11.2)