Context

Context[]

gives the current context.

Context[symbol]

gives the context in which a symbol appears.

Details

  • The current context is the value of $Context.

Examples

Basic Examples  (2)

Give the current context. The default is "Global`":

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

If a new symbol is created, it will have this context:

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

Give the context of an existing symbol:

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

See Also

Begin  $ContextPath  Remove  $Context  Contexts

Tutorials

Introduced in 1988
(1.0)