mercury icon indicating copy to clipboard operation
mercury copied to clipboard

Set widgets values dynamically

Open shinuehara opened this issue 3 years ago • 2 comments

It would be nice to have a way to create input fields using data from a python variable/ API response data/ YML generated file (from a python script for example)

shinuehara avatar Aug 01 '22 14:08 shinuehara

That would be a super feature. I think it can be done in code instead YAML. The YAML will be used to define the widgets and there should be a Python API to manipulate widgets if needed.

pplonski avatar Aug 03 '22 15:08 pplonski

I just wanted to second this - I often run into situations where I would like to dynamically assign dropdown option lists from some set of data (like a csv, for example). It would be great to be able to do this.

Gray-lab avatar Sep 01 '22 01:09 Gray-lab

Hi @shinuehara and @Gray-lab,

we've released Mercury V2. It is now possible to have dynamic widgets. Please check the docs: https://runmercury.com/examples/dynamic-widgets/

You can install Mercury V2 with:

pip install mercury

pplonski avatar Feb 14 '23 11:02 pplonski