PrintTemporary[expr]
prints expr as a temporary cell in a notebook, removing it when the evaluation of the current input line is complete.


PrintTemporary
PrintTemporary[expr]
prints expr as a temporary cell in a notebook, removing it when the evaluation of the current input line is complete.
Details

- PrintTemporary returns a CellObject that can be supplied to NotebookDelete to immediately delete the temporary cell.
- PrintTemporary[expr1,expr2,…] prints expri concatenated together, effectively using Row.
- PrintTemporary creates a cell with style "PrintTemporary".
Examples
open all close allBasic Examples (2)
Possible Issues (1)
PrintTemporary on parallel subkernels is equivalent to ordinary Print:
Use a shared variable to communicate the state to the master kernel and observe it there:
See Also
Tech Notes
Related Guides
Related Workflows
- Print Intermediate Values of a Variable
History
Text
Wolfram Research (2007), PrintTemporary, Wolfram Language function, https://reference.wolfram.com/language/ref/PrintTemporary.html.
CMS
Wolfram Language. 2007. "PrintTemporary." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PrintTemporary.html.
APA
Wolfram Language. (2007). PrintTemporary. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PrintTemporary.html
BibTeX
@misc{reference.wolfram_2025_printtemporary, author="Wolfram Research", title="{PrintTemporary}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/PrintTemporary.html}", note=[Accessed: 18-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_printtemporary, organization={Wolfram Research}, title={PrintTemporary}, year={2007}, url={https://reference.wolfram.com/language/ref/PrintTemporary.html}, note=[Accessed: 18-August-2025]}