gives the notebook in which this function is being evaluated.
EvaluationNotebook
gives the notebook in which this function is being evaluated.
Details
- EvaluationNotebook returns a NotebookObject.
Examples
open all close allBasic Examples (1)
Get the current NotebookObject notebook being evaluated:
EvaluationNotebook[]Use the object for further processing:
Options[EvaluationNotebook[], WindowSize]Applications (1)
Properties & Relations (2)
The notebook that starts an evaluation might not be the input notebook:
nb = CreateDocument["document"];
{InputNotebook[], EvaluationNotebook[]}ScheduledTask evaluations have no evaluation notebook and return $Failed:
SessionSubmit[ScheduledTask[NotebookWrite[InputNotebook[], Cell[ToString[EvaluationNotebook[]], "Output"]], {1}]];Tech Notes
Related Guides
Related Workflows
- Set Detailed Properties of a Notebook
History
Introduced in 1996 (3.0)
Text
Wolfram Research (1996), EvaluationNotebook, Wolfram Language function, https://reference.wolfram.com/language/ref/EvaluationNotebook.html.
CMS
Wolfram Language. 1996. "EvaluationNotebook." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EvaluationNotebook.html.
APA
Wolfram Language. (1996). EvaluationNotebook. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EvaluationNotebook.html
BibTeX
@misc{reference.wolfram_2026_evaluationnotebook, author="Wolfram Research", title="{EvaluationNotebook}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/EvaluationNotebook.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_evaluationnotebook, organization={Wolfram Research}, title={EvaluationNotebook}, year={1996}, url={https://reference.wolfram.com/language/ref/EvaluationNotebook.html}, note=[Accessed: 12-June-2026]}