Suppose I have a notebook consisting of these cells:
- Cell G, containing a grid
- Cell I, containing a program that produces a graphic and places it in a cell
- Cell E, a cell which successfully receives the graphic from cell I
One of the items in the grid in Cell G contains Cell D, which is where I'm trying to place my graphic.
The program in Cell I successfully places the graphic it creates by using this technique:
`graphic=ToBoxes[Graphics[`graphics]]; `cell=Cell[StandardForm[`graphic],CellTags->"cell-E"]; NotebookWrite[First[Cells[CellTags->"cell-E"]],`cell];
So far, this is awesome. My program does not generate any output cells, but I can [Shift]-[Enter] it and see the graphic appear in Cell E wherever that happens to be.
But what I need is for the graphic to appear in Cell D. Currently, I'm trying to use this simple extension to the original idea:
But alas, I get a beep:
You tried to edit inside a subexpression that cannot be edited, because it is a fixed special form.
Several hours of googling and experimenting have not yielded fruit. And, in particular, I have been unable to find out what is meant by "fixed special form".
I have discovered only the following:
- The problem isn't whether the cell is editable.
- The problem isn't the grid.
- The problem isn't how I'm trying to get to Cell D. That is, my code does return the correct CellObject.
Anybody know anything?