ipython-contrib / jupyter_contrib_nbextensions

A collection of various notebook extensions for Jupyter
http://jupyter-contrib-nbextensions.readthedocs.io/en/latest
Other
5.2k stars 805 forks source link

varInspector: return len if object has no shape #1571

Open WTRipper opened 3 years ago

WTRipper commented 3 years ago

The length of an object is an interesting property. And one could argue that the length is the shape of strings, lists, dicts and many other types. The proposed changes will show the length of an object inside the variable inspector if the object has no shape.