NotebookSave
✖
NotebookSave
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 allBasic Examples (1)Summary of the most common use cases
Save a new document to a specified file:
In[1]:=1

✖
https://wolfram.com/xid/0bdpxktiq-en69as
In[2]:=2

✖
https://wolfram.com/xid/0bdpxktiq-dya755
In[3]:=3

✖
https://wolfram.com/xid/0bdpxktiq-0m2au7
Modify a previously saved document and save it to the same place:
In[4]:=4

✖
https://wolfram.com/xid/0bdpxktiq-ewetvq
In[5]:=5

✖
https://wolfram.com/xid/0bdpxktiq-ke17z6
In[6]:=6

✖
https://wolfram.com/xid/0bdpxktiq-ou0b3
In[7]:=7

✖
https://wolfram.com/xid/0bdpxktiq-dvbw6r
Scope (1)Survey of the scope of standard use cases
Wolfram Research (1996), NotebookSave, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookSave.html (updated 2023).
✖
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).
✖
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.
✖
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
✖
Wolfram Language. (1996). NotebookSave. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NotebookSave.html
BibTeX
✖
@misc{reference.wolfram_2025_notebooksave, author="Wolfram Research", title="{NotebookSave}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/NotebookSave.html}", note=[Accessed: 11-May-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_notebooksave, organization={Wolfram Research}, title={NotebookSave}, year={2023}, url={https://reference.wolfram.com/language/ref/NotebookSave.html}, note=[Accessed: 11-May-2025
]}