def __init__(self, filename, *args, **kwargs):
        """
        Args:
            filename (str): an url to an image or a base64 data string
            kwargs: See Widget.__init__()
        """
        super(Image, self).__init__(*args, **kwargs)
        self.type = 'img'
        self.attributes['src'] = filename
def __init__ ( self , filename , * args , ** kwargs ) : super ( Image , self ) . __init__ ( * args , ** kwargs ) self . type = 'img' self . attributes [ 'src' ] = filename
Args:
            filename (str): an url to an image or a base64 data string
            kwargs: See Widget.__init__()