NotebookClose

NotebookClose[notebook]

closes the notebook corresponding to the specified notebook object.

NotebookClose[]

closes the current evaluation notebook.

Details and Options

  • NotebookClose will make a notebook disappear from your screen, and will invalidate all notebook objects that refer to that notebook.
  • If the option setting Interactive->True is given, the front end will prompt the user to decide whether to close the notebook without saving if it would have normally done so in response to a user action to close the notebook.

Examples

open allclose all

Basic Examples  (1)

Create a notebook window:

In[1]:=
Click for copyable input

Close the notebook without saving:

In[2]:=
Click for copyable input

Applications  (1)

Properties & Relations  (1)

See Also

NotebookSave  Close  CreateWindow

Tutorials

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