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

NotebookClose

NotebookClose[notebook]
closes the notebook corresponding to the specified notebook object.
NotebookClose[]
closes the current evaluation notebook.
  • NotebookClose will make a notebook disappear from your screen, and will invalidate all notebook objects which refer to that notebook.
Create a notebook window:
In[1]:=
Click for copyable input
Close the notebook without saving:
In[2]:=
Click for copyable input
New in 3 | Last modified in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team