Basic Examples (3)
Print an expression:
Get the printed CellObject for manipulation in the front end:
View the corresponding Cell expression:
Select the cell contents:
Delete the cell:
Print the first five primes:
Clean up the printed cells:
Scope (4)
Print graphics:
Multiple arguments will be concatenated together:
Print an unevaluated expression:
If no arguments are given, an empty cell will be printed:
Properties and Relations (2)
The cells generated by PrintAsCellObject are equivalent to those generated by Print:
However, the output of Print is always Null:
PrintAsCellObject returns a CellObject similar to PrintTemporary, but does not automatically remove the cell:
Possible Issues (5)
In a kernel session that has no front end, the output is a Missing object:
In a session where a front end, but no dynamic interactivity, is available, PrintAsCellObject will time out while waiting for a cell:
Using options must be done with SetOptions, since they would otherwise be interpreted as arguments:
Unlike Print, PrintAsCellObject needs to wait for communication between the kernel and front end:
If the value for TimeConstraint is too small, results will return faster, but there will not be enough time to get the cell:
Neat Examples (1)
Create a version of Print that is automatically cleared after a specified amount of time: