Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Package Development > Namespace Management > $Context >

$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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF