Mathematica > Core Language > Tuning & Debugging > Symbol Handling > Context >
Mathematica > Core Language > Package Development > Namespace Management > Symbol Handling > Context >

Context

Context
gives the current context.
Context[symbol]
gives the context in which a symbol appears.
  • The current context is the value of $Context.
Give the current context. The default is :
If a new symbol is created, it will have this context:
Give the context of an existing symbol:
Give the current context. The default is :
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]=
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF