Wolfram Research

Function Repository Resource:

SymbolExamples

Source Notebook

Create a notebook of all documentation examples for a symbol

Contributed by: Michael Sollami

ResourceFunction["SymbolExamples"][symbol]

creates a notebook with the documentation page examples for symbol.

Details and Options

ResourceFunction["SymbolExamples"] relies on using EntityValue, which requires internet connectivity.
ResourceFunction["SymbolExamples"] is not yet supported in the Wolfram Cloud (since it relies on documentation URLs).

Examples

Basic Examples

View a notebook containing all the examples from the documentation page for Prime:

In[1]:=
ResourceFunction["SymbolExamples"]["Prime"]
Out[1]=

Show all the examples of MeijerG:

In[2]:=
ResourceFunction["SymbolExamples"]["MeijerG"]
Out[2]=

Properties and Relations

SymbolExamples gives all examples, not just a sampling:

In[3]:=
Length[Cells[ResourceFunction["SymbolExamples"]["PrimeQ"]]]
Out[3]=

Compare to WolframLanguageData, which gives a sample:

In[4]:=
WolframLanguageData["PrimeQ", "DocumentationExampleInputs"][[All, 2]] // Flatten // Length
Out[4]=

Resource History

Related Resources

License Information