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

$Context

$Context
is a global variable that gives the current context.
  • Contexts are specified by strings of the form .
  • $Context is a rough analog for Mathematica symbols of the current working directory for files in many operating systems.
Give the current context. The default is :
New symbols created will have this context by default:
Give the current context. The default is :
In[1]:=
Click for copyable input
Out[1]=
New symbols created will have this context by default:
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
New in 1