CellPrint
✖
CellPrint
Details

- If expr has head TextCell, ExpressionCell, or CellGroup, it is inserted unchanged into the notebook. »
- If expr is a string or Text object, a text cell is created to contain it. »
- If expr is any other type of expression, an expression cell is created to contain it. »
- With a text‐based front end, CellPrint[cell] does the same as applying Print to the contents of cell.
- Cells generated by CellPrint by default have GeneratedCell->True, so that they are overwritten if they are regenerated.
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Create a text cell from a TextCell object:

https://wolfram.com/xid/0j40bj4y-jzdv4

Create a sequence of text cells:

https://wolfram.com/xid/0j40bj4y-dqjxl4


https://wolfram.com/xid/0j40bj4y-lroqct



Create a text cell from a string:

https://wolfram.com/xid/0j40bj4y-ejfix
Scope (4)Survey of the scope of standard use cases
Strings are converted to TextCell objects with no specific style:

https://wolfram.com/xid/0j40bj4y-cqz5ci

https://wolfram.com/xid/0j40bj4y-bxaah5
General expressions are converted to ExpressionCell objects with no specific style:

https://wolfram.com/xid/0j40bj4y-fg553q

https://wolfram.com/xid/0j40bj4y-l0daop
Lists are converted to multiple cells:

https://wolfram.com/xid/0j40bj4y-h6a860
Print cells with specific styles:

https://wolfram.com/xid/0j40bj4y-ds9c7r


https://wolfram.com/xid/0j40bj4y-da8z6e

https://wolfram.com/xid/0j40bj4y-dr1jxp

https://wolfram.com/xid/0j40bj4y-i7dwka

Properties & Relations (1)Properties of the function, and connections to other functions
Possible Issues (3)Common pitfalls and unexpected behavior
Setting CellAutoOverwrite->False and repeatedly evaluating will not delete printed cells:

https://wolfram.com/xid/0j40bj4y-ydweiw
Setting CellAutoOverwrite and GeneratedCell can cause unexpected results:

https://wolfram.com/xid/0j40bj4y-2yir1s

Evaluating input cells generated by CellPrint may put outputs in unexpected places, due to the CellAutoOverwrite and GeneratedCell settings in other cells generated by CellPrint:

https://wolfram.com/xid/0j40bj4y-oih7sd

https://wolfram.com/xid/0j40bj4y-tgijsq
heading cell

https://wolfram.com/xid/0j40bj4y-oxuz3p

Wolfram Research (1996), CellPrint, Wolfram Language function, https://reference.wolfram.com/language/ref/CellPrint.html (updated 2007).
Text
Wolfram Research (1996), CellPrint, Wolfram Language function, https://reference.wolfram.com/language/ref/CellPrint.html (updated 2007).
Wolfram Research (1996), CellPrint, Wolfram Language function, https://reference.wolfram.com/language/ref/CellPrint.html (updated 2007).
CMS
Wolfram Language. 1996. "CellPrint." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/CellPrint.html.
Wolfram Language. 1996. "CellPrint." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/CellPrint.html.
APA
Wolfram Language. (1996). CellPrint. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CellPrint.html
Wolfram Language. (1996). CellPrint. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CellPrint.html
BibTeX
@misc{reference.wolfram_2025_cellprint, author="Wolfram Research", title="{CellPrint}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/CellPrint.html}", note=[Accessed: 29-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_cellprint, organization={Wolfram Research}, title={CellPrint}, year={2007}, url={https://reference.wolfram.com/language/ref/CellPrint.html}, note=[Accessed: 29-March-2025
]}