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:

Introduced in 1996
 (3.0)