Function Repository Resource:

SessionInformation

Source Notebook

Get an association containing various session-related information

Contributed by: Richard Hennigan (Wolfram Research)

ResourceFunction["SessionInformation"][]

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

Examples

Basic Examples (2) 

Retrieve the ResourceFunction:

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

Get information about the current session:

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

Scope (4) 

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]:=
keys = Union[Keys@cloudKernel, Keys@subKernel];
diffKeys = Sort@Select[keys, cloudKernel[#] =!= subKernel[#] &];
In[7]:=
Grid[{#, cloudKernel[#], subKernel[#]} & /@ diffKeys, Alignment -> {Left, Top}, Dividers -> All]
Out[7]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.0 – 11 October 2018

License Information