Message Boards Message Boards

0
|
3900 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

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

Posted 10 years ago
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:

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

--David
http://scientificarts.com
POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract