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:

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:

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_2024_notebookclose, author="Wolfram Research", title="{NotebookClose}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/NotebookClose.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

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