Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

SelectionEvaluateCreateCell

SelectionEvaluateCreateCell[notebook]
takes the current selection in a notebook and creates a new cell containing the result obtained by evaluating the contents of the selection using the kernel.
SelectionEvaluateCreateCell
sets the current selection after the evaluation to be as specified by sel.
  • The default for sel is .
  • SelectionEvaluateCreateCell performs the same underlying operation as typing Shift+Enter in the front end. It does not, however, have side effects such as incrementing $Line.
Evaluate an input cell and produce output beneath it:
Evaluate an input cell and produce output beneath it:
In[1]:=
Click for copyable input
Make the selection be a point within an input cell:
SelectionEvaluateCreateCell takes the whole cell as input:
Select multiple cells:
Evaluate all the evaluatable cells in the selection:
SelectionEvaluate evaluates the selected expression in place:
New in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF