DatasetThumbnail
Last updated
Last updated
DatasetThumbnail
widget in Supervisely is a widget that allows to display a thumbnail image that represents supervisely dataset. It is a useful widget for applications that run from specific dataset, allowing users to have quick access to this dataset, so that when the user clicks on the thumbnail, the link will take him to this dataset.
NamedTuple
, containing information about project.
type: ProjectInfo
default value: None
NamedTuple
, containing information about dataset.
type: DatasetInfo
default value: None
Determines to display project name.
type: bool
default value: True
ID of the widget.
type: str
default value: None
You can find this example in our Github repository:
ui-widgets-demos/thumbnail/002_dataset_thumbnail/src/main.py
First, we load environment variables with credentials and init API for communicating with Supervisely Instance:
DatasetThumbnail
widgetPrepare a layout for app using Card
widget with the content
parameter and place widget that we've just created in the Container
widget.
Create an app object with layout parameter.
Parameters | Type | Description |
---|---|---|
Attributes and Methods | Description |
---|---|
project_info
ProjectInfo
NamedTuple
, containing information about project
dataset_info
DatasetInfo
NamedTuple
, containing information about dataset
show_project_name
bool
Determines to display project name
widget_id
str
ID of the widget
set(project_info: ProjectInfo, dataset_info: DatasetInfo, show_project_name: bool = True)
Set input project data.