Wolfram Computation Meets Knowledge

SessionInformation

Contributed by: Richard Hennigan (Wolfram Research)

Get an association containing various session-related information

ResourceFunction["SessionInformation"][]

returns an Association containing various information about the current evaluation environment.

Examples

Basic Examples

Retrieve the ResourceFunction:

In[1]:=
ResourceFunction["SessionInformation"]
Out[1]=

Get information about the current session:

In[2]:=
ResourceFunction["SessionInformation"][]
Out[2]=

More Examples

Scope

See information from a cloud kernel:

In[3]:=
CloudEvaluate[ResourceFunction["SessionInformation"][]]
Out[3]=

Format the output in a grid:

In[4]:=
ResourceFunction["SessionInformation"]["Grid"]
Out[4]=

Get a Dataset of the output:

In[5]:=
ResourceFunction["SessionInformation"]["Dataset"]
Out[5]=

Compare results between two kernels:

In[6]:=
cloudKernel = CloudEvaluate[ResourceFunction["SessionInformation"][]];
subKernel = ResourceFunction["LocalEvaluate"][
   ResourceFunction["SessionInformation"][]];
In[7]:=
keys = Union[Keys@cloudKernel, Keys@subKernel];
diffKeys = Sort@Select[keys, cloudKernel[#] =!= subKernel[#] &];
In[8]:=
Grid[{#, cloudKernel[#], subKernel[#]} & /@ diffKeys, Alignment -> {Left, Top}, Dividers -> All]
Out[8]=

Resource History