is an option for Cell that gives a function to be applied to every expression from the cell that is sent to the kernel for ordinary evaluation.


CellEvaluationFunction
is an option for Cell that gives a function to be applied to every expression from the cell that is sent to the kernel for ordinary evaluation.
Details

- CellEvaluationFunction is used for all ordinary kernel evaluations, as initiated, for example, by
or Evaluate in Place.
- It is not used for evaluations associated with Dynamic objects.
- In a StandardForm or TraditionalForm cell, CellEvaluationFunction is applied to the BoxData expression representing the input to be evaluated.
- In an InputForm cell, it is applied to the string corresponding to the input to be evaluated.
- With CellEvaluationFunction->f and $PreRead=g, the object processed by the kernel will be g[f[data]].
- The default setting is CellEvaluationFunction->Identity.
Examples
Basic Examples (1)
Print a StandardForm input cell that uses CellEvaluationFunction when evaluated:
See Also
Related Guides
History
Text
Wolfram Research (2007), CellEvaluationFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/CellEvaluationFunction.html.
CMS
Wolfram Language. 2007. "CellEvaluationFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CellEvaluationFunction.html.
APA
Wolfram Language. (2007). CellEvaluationFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CellEvaluationFunction.html
BibTeX
@misc{reference.wolfram_2025_cellevaluationfunction, author="Wolfram Research", title="{CellEvaluationFunction}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/CellEvaluationFunction.html}", note=[Accessed: 15-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_cellevaluationfunction, organization={Wolfram Research}, title={CellEvaluationFunction}, year={2007}, url={https://reference.wolfram.com/language/ref/CellEvaluationFunction.html}, note=[Accessed: 15-August-2025]}