[Note: I assumed CellPrint
was necessary, which was wrong. I did not realize that ExpressionCell
as output becomes an InterpretationBox
. See end.]
CellPrint[]
on given example
For the given code, you can't edit the graphics with Deployed -> True
. (Click on the graphics, then double click, then drag the disk around.) You also cannot resize the graphics or use Get Coordinates, the Drawing Tools, or other editing actions in the graphics context menu. I also cannot select any elements in the cell, although the slider responds to mouse-down and mouse-dragged events.

Output cells
It's a bit more complicated if you use cell styles. The default "Output"
style has GraphicsBoxOptions
and Graphics3DBoxOptions
that override Deployed
to set it to False
. To counter that, you need to add one or both of the following Cell
options:
GraphicsBoxOptions -> {
DefaultBaseStyle -> {"Graphics", Deployed -> True}}
Graphics3DBoxOptions->{
DefaultBaseStyle -> {"Graphics3D", Deployed -> True}}
If you do not do this, then the cell will be deployed but the graphics editable. When the graphics are edited, the cell is converted to an "Input"
cell and the Deployed
option is removed.
Thus the following gives a deployed cell (but the slider still responds to mouse events):
ExpressionCell[{Graphics[Disk[]], Slider2D[]},
"Output", Deployed -> True,
GraphicsBoxOptions -> {DefaultBaseStyle -> {"Graphics",
Deployed -> True}}] // CellPrint
If we remove the cell option Deployed -> True
, we get a regular cell with deployed graphics. However, if the cell is edited, it will be converted to an "Input"
cell and un-deployed.
ExpressionCell[{Graphics[Disk[]], Slider2D[]},
"Output",(*Deployed->True,*)
GraphicsBoxOptions -> {DefaultBaseStyle -> {"Graphics",
Deployed -> True}}] // CellPrint
Other cell styles may be investigated as desired. I do not remember this happening several years back (overriding Deployed
with box options), but maybe my memory is wrong. I don't have a way to check at this point.
The given example without CellPrint[]
The raw ExpressionCell[..]
results in an InterpretationBox[]
in an output cell. The InterpretationBox[]
is by default Editable -> False
. Thus the graphics are not editable, no matter what the setting Deployed
is. Below is the cell expression of the output:
ExpressionCell[{Graphics[Disk[]], Slider2D[]}, Deployed -> False]
(*
Cell[BoxData[
InterpretationBox[Cell[BoxData[
RowBox[{"{",
RowBox[{
GraphicsBox[DiskBox[{0, 0}]], ",",
Slider2DBox[{0.5, 0.5}]}], "}"}]]],
ExpressionCell[{
Graphics[
Disk[{0, 0}]],
Slider2D[]}]]], "Output",
CellChangeTimes->..., CellLabel->...]
*)
Since the example comes from the docs for Deployed
, I would say it's a bad example to show how Deployed
works. Since it's the only example, it's doubly bad.
You can play with the following to get something where Deployed
has an effect:
ExpressionCell[{Graphics[Disk[]], Slider2D[]},
Deployed -> False (* True *),
Editable -> True]
I got it to give me the error:
INTERNAL SELF-TEST ERROR: Graphics2DEventTracker|cpp|207