Begin

Begin["context`"]
resets the current context.

DetailsDetails

  • Begin resets the value of $Context.
  • The interpretation of symbol names depends on context. Begin thus affects the parsing of input expressions.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Define a function in the Context:

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

Restore the context:

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

will generally be hidden in the restored context:

The definitions are all in :

The function can be called using its fully qualified name:

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