Wolfram Language lets you easily reuse output from evaluations in additional computations.

Using a Menu Item or Keyboard Shortcut...

Choose Insert Output from Above () to paste the nearest preceding output into the current input:

  • Insert Output from Above () will only paste output from the current notebook.

Programmatically...

Refer to the most recent output with %:

  • % is short for Out[].
  • % gives the most recent output from any notebook in the current session.
  • %% refers to the next-to-last output, %%% to the third previous output, and so on.

Programmatically by Line Number...

Refer to the ^(th) output expression with %n:

  • %n is short for Out[n].
  • Out[-n] gives the output n lines back.

Programmatically by Line Number...

Refer to the ^(th) output expression with %n:

  • %n is short for Out[n].
  • Out[-n] gives the output n lines back.

Programmatically by Line Number...

Refer to the ^(th) output expression with %n:

  • %n is short for Out[n].
  • Out[-n] gives the output n lines back.