def imshow(self, name):
    command = ('import spyderlib.pyplot; __fig__ = spyderlib.pyplot.figure(); __items__ = spyderlib.pyplot.imshow(%s); spyderlib.pyplot.show(); del __fig__, __items__;' % name)
    if self.is_ipykernel:
        self.ipyclient.shellwidget.execute(('%%varexp --imshow %s' % name))
    else:
        self.shellwidget.send_to_process(command)
def imshow(self, name):
    command = ('import spyderlib.pyplot; __fig__ = spyderlib.pyplot.figure(); __items__ = spyderlib.pyplot.imshow(%s); spyderlib.pyplot.show(); del __fig__, __items__;' % name)
    if self.is_ipykernel:
        self.ipyclient.shellwidget.execute(('%%varexp --imshow %s' % name))
    else:
        self.shellwidget.send_to_process(command)