ProjectThumbnail
Last updated
Last updated
ProjectThumbnail
widget in Supervisely is a widget that allows to display a thumbnail image that represents supervisely project. It is a useful widget for applications that run from specific project, allowing users to have quick access to this project, so that when the user clicks on the thumbnail, the link will take him to this project.
NamedTuple
, containing information about project.
type: ProjectInfo
default value: None
Set margins to 0 to make widget more compact.
type: bool
default value: False
ID of the widget.
type: str
default value: None
You can find this example in our Github repository:
ui-widgets-demos/thumbnail/001_project_thumbnail/src/main.py
First, we load environment variables with credentials and init API for communicating with Supervisely Instance:
ProjectThumbnail
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 |
---|---|
info
ProjectInfo
NamedTuple
, containing information about project
remove_margins
bool
Set margins to 0 to make widget more compact
widget_id
str
ID of the widget
set(info: ProjectInfo)
Set input project data.