InputNotebook

InputNotebook[]

gives the current notebook into which keyboard input in the front end will be directed.

Details

  • InputNotebook returns a NotebookObject.
  • If there is no current input notebook, InputNotebook[] will return $Failed.
  • The current input notebook is the notebook to which textual commands in the front end are normally directed.
  • A palette window can be a currently selected notebook but cannot normally be an input notebook.

Examples

open allclose all

Basic Examples  (1)

Give the notebook object for the current input notebook:

In[1]:=
Click for copyable input
Out[1]=

Perform additional operations:

In[2]:=
Click for copyable input
Out[2]=

Properties & Relations  (1)

Possible Issues  (1)

See Also

Notebooks  SelectedNotebook  EvaluationNotebook  ButtonNotebook

Tutorials

Introduced in 1996
(3.0)