Request: show a summary of a class similar to the one has for objects

If I define a class in Observable, all I see in the cell is class:


If I compare this to the Chrome console, we see that asking for SumTableRGBA.prototype looks very similar to the way Observable renders regular objects:

So my request is: could we have something similar to the object summary but for classes? It would be very nice to see at a glance which methods it has - which would be especially useful as quick reminders when importing classes from other notebooks.

1 Like

I think that a collapsible ▶ Class, toggling open to list the prototype methods, would be lovely!

We can add it to the Big List of Good Ideas™, but fortunately, the Observable Inspector is open source, so if anyone wants to whip up a little pull request for it, that would expedite things significantly…