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

$Notebooks

$Notebooks
is True if Mathematica is being used with a notebook-based front end.
  • $Notebooks is automatically set by the front end when it starts the Mathematica kernel.
This tells you that Mathematica is being used with a notebook-based front end:
This tells you that Mathematica is being used with a notebook-based front end:
In[1]:=
Click for copyable input
Out[1]=
An application can check $Notebooks to decide how to behave:
New in 2