Function Repository Resource:

DefinitionData

Source Notebook

Store full definitions for a symbol in a compact object

Contributed by: Richard Hennigan (Wolfram Research)

ResourceFunction["DefinitionData"][symbol]

returns a definition object for symbol and all its dependencies.

ResourceFunction["DefinitionData"][][property]

returns the definition information specified by property.

Details

In ResourceFunction["DefinitionData"][][property], possible values for property include:
"Name"the fully qualified name of the symbol
"Definitions"an Association containing full definition information
"Symbols"a list of all the contained symbols, each wrapped in HoldForm
"Names"a list of fully qualified symbol names
"Size"the full size of the definition data in bytes
"Contexts"a list of all contexts for the defined symbols
"DefinitionList"returns a Language`DefinitionList of the definition data
Get[ResourceFunction["DefinitionData"][]] will restore all the contained definitions.
Information[ResourceFunction["DefinitionData"][]] provides a summary of some properties.

Examples

Basic Examples (3) 

Get all needed definitions for f, which depends on the function g:

In[1]:=
g[x_] := x^3;
f[x_] := g[x^2];
data = ResourceFunction["DefinitionData"]@f
Out[3]=

View information about the definitions:

In[4]:=
Information[data]
Out[4]=

Using Get can restore cleared symbols:

In[5]:=
ClearAll[f, g];
In[6]:=
f[5]
Out[6]=
In[7]:=
Get[data]
Out[7]=
In[8]:=
f[5]
Out[8]=

Applications (4) 

Store definitions from a package as an object that can be stored in notebooks:

In[9]:=
Get["ExampleData/Collatz.m"];
data = ResourceFunction["DefinitionData"]@Collatz`Collatz
Out[10]=

View the definitions:

In[11]:=
data["Definitions"]
Out[11]=
In[12]:=
Collatz`Collatz // ClearAll;

This is now equivalent to loading the original package:

In[13]:=
Get@data
Out[13]=

The definition is loaded:

In[14]:=
Definition@Collatz`Collatz
Out[14]=
In[15]:=
Collatz`Collatz[47]
Out[15]=

Properties and Relations (5) 

Get a list of available properties:

In[16]:=
ResourceFunction["DefinitionData"][
Association[
  "Name" -> "Global`DefinitionData", "Definitions" -> Identity[ByteArray][
    "OEM6eJztWu9uGzcSz+qPLcmu3QQojOIOuEW+3IeeArT9FqAoZDl2cxfHf6j0PhRFRUlce5td7nbJta186kv0Ffo8fYZ7gHuFuyGXu8uluLKk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CAuRudEJl8hk7uOENn7cn6jj/Mx/KETcsN3xbQfgXRvtC2J0TgjJ116zxIhZ3bIx+Cbti0LAEbbFkXUG0gmbbOZrMLO8X2SULgd2Jj+uA9M0RmALse7fPoliTDxvA/Sy3RfnZD6Cam2BwlTUVQOxVj6BdHvfiOfu9eiaNcAMkA+LqR5/Jr4vrADVZnrk/l85f0s88FYEIiDv/Wc9WHcZxwyAqul0ShS5+4IyCFYkvc7qcJEfjLrzGHf+AXU4WQi4NbPGcFE1gp9KlY7MmHEPsQYh9C7B2HmHGdMGhWI2y1UzjHciuxcACslRvqLkPsJAKridPe9hGJZRm8KxiLAyVxEVZOHjbWlsHWdxW3vx9BNsdpwBdKNesuO2z7LK6esZeryJn2qnFfMBkEQa5PHy29SFmroFl+JfOkvm230Zf/0a567bCWRDU3F3+tFaVK2EfLGpe1JFnaAfVr5bGRlyWnODjYqOQUE2UvmoCW4iCjjfg8u8a6xLfZ2XXZ7TfLY55q/48cD7p+1Lj7AXp91Hj6FWo8fjzcLTvrY5D4GId+MEf7SGrmIkyZe54UrSLrCiLAoigRJ1gnCZ6/IDckSB7Iz29fl9wOoT27SsSxbpXSk59/f/1fFjK/Yg=="]]]["Properties"]
Out[16]=

See what symbols are contained:

In[17]:=
ResourceFunction["DefinitionData"][
Association[
  "Name" -> "Global`DefinitionData", "Definitions" -> Identity[ByteArray][
    "OEM6eJztWu9uGzcSz+qPLcmu3QQojOIOuEW+3IeeArT9FqAoZDl2cxfHf6j0PhRFRUlce5td7nbJta186kv0Ffo8fYZ7gHuFuyGXu8uluLKkNNccEMGItMvhcGY485sZMoNuH31yEkQTHIyPiOdTn/sRPcIcD7b6rIvSybc4SAnzeqz1wmfca7CdyzQgRyTAczLzHLbzTRTMzjHnJKGeAy/s7GBg/x9kLrnl1A3WErzge1u9YvtqcpxEMUn43HvA2ocBpq91ol1FdCOYWSlq2RhzN9Ym54d659kSPtiok9kItV7ikKDe2eRHMuWjeUzQTjmdobYYZmgbzcNJFDDUQv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5+4IyCFYkvc7qcJEfjLrzGHf+AXU4WQi4NbPGcFE1gp9KlY7MmHEPsQYh9C7B2HmHGdMGhWI2y1UzjHciuxcACslRvqLkPsJAKridPe9hGJZRm8KxiLAyVxEVZOHjbWlsHWdxW3vx9BNsdpwBdKNesuO2z7LK6esZeryJn2qnFfMBkEQa5PHy29SFmroFl+JfOkvm230Zf/0a567bCWRDU3F3+tFaVK2EfLGpe1JFnaAfVr5bGRlyWnODjYqOQUE2UvmoCW4iCjjfg8u8a6xLfZ2XXZ7TfLY55q/48cD7p+1Lj7AXp91Hj6FWo8fjzcLTvrY5D4GId+MEf7SGrmIkyZe54UrSLrCiLAoigRJ1gnCZ6/IDckSB7Iz29fl9wOoT27SsSxbpXSk59/f/1fFjK/Yg=="]]]["Names"]
Out[17]=

Use a list of properties to return an Association:

In[18]:=
ResourceFunction["DefinitionData"][
Association[
  "Name" -> "Global`DefinitionData", "Definitions" -> Identity[ByteArray][
    "OEM6eJztWu9uGzcSz+qPLcmu3QQojOIOuEW+3IeeArT9FqAoZDl2cxfHf6j0PhRFRUlce5td7nbJta186kv0Ffo8fYZ7gHuFuyGXu8uluLKkNNccEMGItMvhcGY485sZMoNuH31yEkQTHIyPiOdTn/sRPcIcD7b6rIvSybc4SAnzeqz1wmfca7CdyzQgRyTAczLzHLbzTRTMzjHnJKGeAy/s7GBg/x9kLrnl1A3WErzge1u9YvtqcpxEMUn43HvA2ocBpq91ol1FdCOYWSlq2RhzN9Ym54d659kSPtiok9kItV7ikKDe2eRHMuWjeUzQTjmdobYYZmgbzcNJFDDUQv4bgjrDiHJyxxnaK4nfzuSlkJooewbRfdw1q3bUMrNNdrliA6BT+7EzYCya+li8tu2x2EGNPHfCPW3aKY5L0YyJ78Bdq4poIj/KZbhPz2LrvSbbHUXP7uKEMCYM4LAWrMpsrFj3OY1TfhwlIesIJcSv91S/zMOXafOeCi5DUa7+8SVhUZpMyXFKp3Js/3DOCRtFFymm3AdMcVhXvBpGKeX/RzoWQCPGX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Gpe1JFnaAfVr5bGRlyWnODjYqOQUE2UvmoCW4iCjjfg8u8a6xLfZ2XXZ7TfLY55q/48cD7p+1Lj7AXp91Hj6FWo8fjzcLTvrY5D4GId+MEf7SGrmIkyZe54UrSLrCiLAoigRJ1gnCZ6/IDckSB7Iz29fl9wOoT27SsSxbpXSk59/f/1fFjK/Yg=="]]][{"Name", "Size", "Contexts"}]
Out[18]=

The InputForm of DefinitionData serializes definitions to protect contexts and initialization states of values:

In[19]:=
ResourceFunction["DefinitionData"][
Association[
  "Name" -> "Global`f", "Definitions" -> Identity[ByteArray][
    "OEM6eJxzZNIN5nDPyU9KzElIc2TULeZyyS/PC0vMKU0tTmMsZvHJLC5JYyrmDirNSXVJzUmsTE0BCnN75OekBCSWlKQW5QG5cAOAKtmhwnDBijSGYlannMS8bCSV6UCVrAH55alFCHXOSE5Jp9Qp6QScgsV6ZgCDkFlN"]]] // InputForm
Out[19]=

Use FullForm to see the actual expression structure:

In[20]:=
ResourceFunction["DefinitionData"][
Association[
  "Name" -> "Global`f", "Definitions" -> Identity[ByteArray][
    "OEM6eJxzZNIN5nDPyU9KzElIc2TULeZyyS/PC0vMKU0tTmMsZvHJLC5JYyrmDirNSXVJzUmsTE0BCnN75OekBCSWlKQW5QG5cAOAKtmhwnDBijSGYlannMS8bCSV6UCVrAH55alFCHXOSE5Jp9Qp6QScgsV6ZgCDkFlN"]]] // FullForm
Out[20]=

When writing DefinitionData to a file as InputForm via Put, CloudPut, Export, etc., original contexts will be preserved in binary form:

In[21]:=
$Context = "MyContext`";
g1[x_] := x^3;
f1[x_] := g1[x^2];
data = ResourceFunction["DefinitionData"]@f1
Out[12]=
In[22]:=
Put[data, "file.wl"];
FilePrint["file.wl"]

Changing $Context or $ContextPath will not affect which contexts the contained symbols are created in:

In[23]:=
$Context = "Global`";
Remove[MyContext`f1, MyContext`f2];
Get["file.wl"]
Out[24]=

Load the definitions:

In[25]:=
Get@%
Out[25]=

The symbols are redefined in their original contexts:

In[26]:=
MyContext`f1[5]
Out[26]=

Possible Issues (1) 

Some contexts (such as System`) are excluded when including definitions:

In[27]:=
a := {b, Table};
b := {MyContext`c, CloudObject};
MyContext`c := 1;
ResourceFunction["DefinitionData"]@a
Out[12]=
In[28]:=
%["Names"]
Out[28]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 2.0.0 – 13 September 2021
  • 1.0.0 – 15 February 2019

Related Resources

License Information