def show_image(self, name):
    command = ('%s.show()' % name)
    if self.is_ipykernel:
        self.ipyclient.shellwidget.execute(command)
    else:
        self.shellwidget.send_to_process(command)
def show_image(self, name):
    command = ('%s.show()' % name)
    if self.is_ipykernel:
        self.ipyclient.shellwidget.execute(command)
    else:
        self.shellwidget.send_to_process(command)