TolokaPluginV1

toloka.client.project.template_builder.plugins.TolokaPluginV1 | Source code

TolokaPluginV1(
self,
kind: Optional[TolokaPluginLayout.Kind] = None,
*,
task_width: Optional[Union[BaseComponent, float]] = None,
notifications: Optional[Union[BaseComponent, List[BaseComponent]]] = None,
version: Optional[str] = '1.0.0'
)

A plugin with extra settings for tasks in Toloka.

Parameters Description

ParametersTypeDescription
layoutOptional[Union[BaseComponent, TolokaPluginLayout]]

Settings for the task appearance in Toloka.

notificationsOptional[Union[BaseComponent, List[BaseComponent]]]

Notifications shown at the top of the page.

Examples:

How to set the task width on the task page.

task_width_plugin = tb.plugins.TolokaPluginV1(
'scroll',
task_width=400,
)
Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming