closes the notebook corresponding to the specified notebook object.


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.


open allclose all

Basic Examples  (1)

Create a notebook window:

Close the notebook without saving:

Applications  (1)

Create a palette button that writes to the input notebook and then closes the palette:

Properties & Relations  (1)

Use NotebookSave when you want to save changes before closing a notebook:

NotebookOpen opens the notebook from the file:

Introduced in 1996
Updated in 2007