Skip to main content

Widgets

Widgets are no-code blocks that render your data as visual components — charts, tables, KPIs, forms, and more — without writing display code. You configure them through a settings panel instead of code, making them the building blocks of your data apps.

What is a Widget?

In MINEO, a widget is a special type of block that renders specific visual components or provides different functionality. For example you can use widgets to retrieve data from your data source and then display the output in tables and charts.

Python code

Widgets can execute Python code, but the output is not displayed. You can use a widget to execute code and then hide the code area so that it does not visually affect your data app.

Getting started

Creating a Widget

To create your first widget, you can click the 'Add Widget' button on your Notebook button bar.

Configuring a Widget: Basic

Now you have your widget as a block of your Notebook. The next step is configuring it. Every Widget has different configuration options depending on its feature. You can open the settings drawer clicking the 'Widget Properties' button in a block's toolbar.

In the settings drawer, you have all the different configuration settings of the Widget, grouped by categories, such as basic configuration, style, formatting, etc.

Configuring a Widget: Variable interpolation

Widget setting inputs can interpolate variables from your Python context. For example, you can fill the 'title' field of a Widget Title with $my_title , and when you execute it, the setting will be filled with whatever value my_title has from previously executed blocks.

my_title = 'Hello World!'
Variable interpolation

What's Next?

In the following sections, you will learn in detail how to use and configure each type of widget.

See also

  • Chart — render your data as interactive charts.
  • Table — display query results and datasets in a table.
  • KPI — highlight a single key metric.
  • Query — fetch data from a data source to feed your widgets.
  • Selectors — let users filter and parameterise your data app.
  • Notebooks — the workspace where widgets live.