WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

NotebookClose [notebook]

closes the notebook corresponding to the specified notebook object.

NotebookClose []

closes the current evaluation notebook.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
Applications  
Properties & Relations  
See Also
Tech Notes
Related Guides
Related Workflows
History
Cite this Page

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 all close 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:

See Also

NotebookSave   Close   CreateWindow

Function Repository: CloseOtherNotebooks

Related Workflows

History

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

Wolfram Research (1996), NotebookClose, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookClose.html (updated 2012).

Text

Wolfram Research (1996), NotebookClose, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookClose.html (updated 2012).

CMS

Wolfram Language. 1996. "NotebookClose." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2012. https://reference.wolfram.com/language/ref/NotebookClose.html.

APA

Wolfram Language. (1996). NotebookClose. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NotebookClose.html

BibTeX

@misc{reference.wolfram_2025_notebookclose, author="Wolfram Research", title="{NotebookClose}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/NotebookClose.html}", note=[Accessed: 05-December-2025]}

BibLaTeX

@online{reference.wolfram_2025_notebookclose, organization={Wolfram Research}, title={NotebookClose}, year={2012}, url={https://reference.wolfram.com/language/ref/NotebookClose.html}, note=[Accessed: 05-December-2025]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /