This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)


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.
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:
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