[IPython-dev] New generic inspect_object

Ville M. Vainio vivainio@gmail....
Wed Jun 27 18:09:24 CDT 2007

I just checked in a new generic function "inspect_object".

Basically, you can use it to customize how your objects are displayed
when you do




Hypothetical examples: a "path" object could launch an explorer window
in the directory if the path points to a directory, an image object
could launch a window displaying the image etc. etc.

Modern syntax would be:

def my_display(obj):
  print "Inspecting",obj

Ville M. Vainio - vivainio.googlepages.com
blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'

More information about the IPython-dev mailing list