NotebookSave

NotebookSave[notebook]

saves the current version of the specified notebook.

NotebookSave[notebook,"file"]

saves the notebook in the specified file.

NotebookSave[]

saves the current version of the current evaluation notebook in a file.

Details and Options

  • notebook must be a NotebookObject expression. "file" should be an absolute pathname.
  • NotebookSave[notebook] saves the notebook in a file whose name is given by the notebook object notebook.
  • NotebookSave writes out the Wolfram Language expression corresponding to the notebook, together with Wolfram Language comments which make it easier for the front end to read the notebook in again.
  • NotebookSave[notebook,"file"] overwrites file without warning if it exists.
  • NotebookSave[notebook,File["file"]] is also supported.
  • If the option setting Interactive->True is given, the front end will prompt the user to select a file name for the notebook.

Examples

open allclose all

Basic Examples  (1)

Save a new document to a specified file:

Modify a previously saved document and save it to the same place:

Scope  (1)

If you do not provide a file name for a new notebook, you will be prompted to choose one:

Applications  (1)

Save the notebook being evaluated:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2024_notebooksave, author="Wolfram Research", title="{NotebookSave}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/NotebookSave.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_notebooksave, organization={Wolfram Research}, title={NotebookSave}, year={2023}, url={https://reference.wolfram.com/language/ref/NotebookSave.html}, note=[Accessed: 22-November-2024 ]}