code: def imshow(self, name):
          
          sw = self.shellwidget
          if sw._reading:
              sw.dbg_exec_magic('varexp', '--imshow %s' % name)
          else:
              sw.execute("%%varexp --imshow %s" % name)
docs: Show item's image