BUILT-IN MATHEMATICA SYMBOL

$Inspector

$Inspector
is a global variable which gives a function to apply when the inspector is invoked from an interrupt menu.

DetailsDetails

  • The argument supplied is the number of nested invocations of the inspector that are in use.
  • The default value of $Inspector is a function that executes Dialog[].

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

The default value:

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

Print a message before starting or exiting a subsession:

In[1]:=
Click for copyable input

Invoke an interrupt menu:

In subsession:

In[3]:=
Click for copyable input
(Dialog) Out[3]=
In[4]:=
Click for copyable input

Restore to the default value:

In[5]:=
Click for copyable input
New in 2
New to Mathematica? Find your learning path »
Have a question? Ask support »