Function Repository Resource:

InspectNotebook

Source Notebook

Launch a dynamic display showing the selected notebook content

Contributed by: Bob Sandheinrich

ResourceFunction["InspectNotebook"][obj]

adds a docked cell to the notebook object obj that dynamically shows the notebook’s selected content.

ResourceFunction["InspectNotebook"][]

inspects the EvaluationNotebook.

Details and Options

The launched cell is added above any existing docked cells.
The displayed data shows raw notebook expressions containing objects like Cell and BoxData.
ResourceFunction["InspectNotebook"] does not support text cells.

Examples

Basic Examples (2) 

Create and inspect a simple notebook by highlighting the content:

In[1]:=
ResourceFunction["InspectNotebook"][
 CreateDocument[{ExpressionCell[x^2, "Input"]}]]
Out[1]=

Inspect a more complex notebook:

In[2]:=
ResourceFunction["InspectNotebook"][
 ResourceFunction["BirdSay", "ExampleNotebook"]]
Out[2]=

Version History

  • 1.0.0 – 22 August 2019

Related Resources

License Information