shapelets.apps.DataApp.image#

DataApp.image(img: Optional[Union[str, bytes, Path, Figure]] = None, caption: Optional[str] = None, placeholder: Optional[Union[str, bytes, Path]] = None, **additional)#

Adds a placeholder for a Image on a DataApp. You can load a local image file or generate one with Python.

Parameters:
imgstr

Path of Image to be included.

captionstr, optional

Caption for the image

placeholderstr, optional

Placeholder image

Returns:
Image

Examples

>>> image = app.Image('path/to/image','Image 1')

Bind compatibility

You can bind this widget with this:

  • str

  • bytes

  • path()

  • figure()

  • image()

Bindable as

You can bind this widget as:

Currently this widget cannot be used as input in a binding function.