This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

CellPrint

CellPrint[expr]
inserts expr as a complete cell in the current notebook just below the cell being evaluated.
CellPrint
inserts a sequence of cells.
  • 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.
Create a text cell from a TextCell object:
Create a sequence of text cells:
Create a text cell from a string:
Create a text cell from a TextCell object:
In[1]:=
Click for copyable input
 
Create a sequence of text cells:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
 
Create a text cell from a string:
In[1]:=
Click for copyable input
a
Strings are converted to TextCell objects:
General expressions are converted to ExpressionCell objects:
Lists are converted to multiple cells:
Print cells with specific styles:
Print is a special case of CellPrint:
New in 3 | Last modified in 6