Message Boards Message Boards


How do I enable the Evaluate in Place item of the Evaluate menu?

Posted 9 years ago
1 Reply
0 Total Likes
I would like to setup a notebook that suppresses additive cell evaluation (so I only see one manipulate control or plot). Is there a way to enable the Evaluate in Place menu item?  (apologies for any mis-spellings - the Tip block covers the right-hand side of this edit box).
POSTED BY: Doug Kimzey
I am not quite sure what you mean by "additive cell evaluation".  Do you want to always replace a given input cell by its output -- thus deleting the contents original Input Cell?  If so, Here is an example of a single button Palette that will do this:

     Button["Evaluate In Place",
      nb = InputNotebook[];
      SelectionMove[nb, All, CellContents];
      SelectionEvaluate[nb, None];
      SelectionMove[nb, All, Cell]],
     Method -> "Queued",
    BaseStyle -> {11, FontFamily -> "Helvetica"},
    Appearance -> "Palette"

POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract