Echo
Examples
open all close allBasic Examples (3)
Print the result of an intermediate computation:
expr1;Echo[x = 1 + 1];expr2Print an intermediate result using a label:
expr1;x = Echo[1 + 1, "sum:"];expr2Report a property of an intermediate result:
expr1;Echo[DateList[], "length:", Length];expr2Scope (4)
Echo[…] can be used as an argument to other functions because Echo returns its first argument:
Echo[1 + 1] + Echo[2 ^ 3]Mix Echo and Print statements:
{Echo[a + b], Print[x + y]}Use Echo with any type of expression:
Echo[Graphics[Circle[]], "a circle:"]Print a property of a subexpression:
Graphics[Echo[Circle[], "circumference:", ArcLength]]Applications (1)
Observe the order in which Cases visits parts of an expression at level 1:
expr = {a, {1, b}, 2};Cases[expr, x_ /; NumberQ[Echo[x]]]Cases[expr, x_ /; NumberQ[Echo[x]], All]Properties & Relations (6)
Echo returns the expression in its first argument:
Echo[expr]Print[expr]//InputFormEchoFunction is an operator form of Echo:
Echo[expr, "label:", f]EchoFunction["label:", f][expr]EchoLabel is an operator form of Echo:
Echo[expr, "label:"]EchoLabel["label:"][expr]EchoTiming can be used to print the timing of intermediate computations without affecting the result:
x = 1;EchoTiming[Pause[x++]];xEcho can also be used to print the timing, but at the cost of doing the computation twice:
x = 1;Echo[Unevaluated[Pause[x++]], "timing:", AbsoluteTiming];xEcho prints the evaluated expression:
Echo[1 + 1]Use Unevaluated to print the unevaluated expression:
Echo[Unevaluated[1 + 1]]EchoEvaluation prints the expression before and after evaluation:
EchoEvaluation[1 + 1]Echo is disabled inside QuietEcho:
QuietEcho[Echo[expr]]See Also
EchoFunction EchoLabel EchoTiming EchoEvaluation QuietEcho Print TracePrint Sow $ProgressReporting
Function Repository: LabeledPrint LimitEcho EchoGroup ToggleEcho
Related Guides
Related Workflows
- Print Intermediate Values of a Variable
History
Text
Wolfram Research (2015), Echo, Wolfram Language function, https://reference.wolfram.com/language/ref/Echo.html.
CMS
Wolfram Language. 2015. "Echo." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Echo.html.
APA
Wolfram Language. (2015). Echo. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Echo.html
BibTeX
@misc{reference.wolfram_2026_echo, author="Wolfram Research", title="{Echo}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/Echo.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_echo, organization={Wolfram Research}, title={Echo}, year={2015}, url={https://reference.wolfram.com/language/ref/Echo.html}, note=[Accessed: 13-June-2026]}