EvaluationNotebook

EvaluationNotebook[]

gives the notebook in which this function is being evaluated.

Details

Examples

open allclose all

Basic Examples  (1)

Get the current NotebookObject notebook being evaluated:

Use the object for further processing:

Applications  (1)

Create a palette button that writes to the input notebook and then closes the palette:

Properties & Relations  (2)

The notebook that starts an evaluation might not be the input notebook:

ScheduledTask evaluations have no evaluation notebook and return $Failed:

Possible Issues  (1)

Moving the selection in the evaluation notebook does not change the output cell location:

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

Text

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

BibTeX

@misc{reference.wolfram_2021_evaluationnotebook, author="Wolfram Research", title="{EvaluationNotebook}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/EvaluationNotebook.html}", note=[Accessed: 03-December-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_evaluationnotebook, organization={Wolfram Research}, title={EvaluationNotebook}, year={1996}, url={https://reference.wolfram.com/language/ref/EvaluationNotebook.html}, note=[Accessed: 03-December-2021 ]}

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