Am trying to generate an Evaluatable cell which itself is an output cell which will be overwritten when the original Input cell will be evaluated again:
CellPrint[
ExpressionCell[Defer[1 + 1], "Output", Evaluatable -> True,
CellAutoOverwrite -> True, GeneratedCell -> True]]
Without Evaluatable -> True everything works as expected: the generated output cell is automatically overwritten when the input cell is evaluated again. But adding Evaluatable -> True breaks this behavior.
Is it possible to generate Evaluatable cell which will be automatically overwritten?
Evaluatable -> TrueI can still evaluate the1 + 1cell so I am wondering whereEvaluatable -> Trueis necessary. – Mr.Wizard Apr 11 '13 at 19:36Evaluatable -> Trueis necessary for work of theInitializationCell -> Trueoption. WithoutEvaluatable -> Trueinitialization cells are simply ignored. – Alexey Popkov Apr 12 '13 at 00:04