
Hi,
I am working on making a multiselect tool where the user selects a range, and that range is fed to a pd sql query. Can anyone point me to an example to help or maybe have a look at the code below (its only a snippet of what I am trying to achieve.
OPTIONS = [("1", "[55, 65]"), ("2", "[65, 75]"), ("3", "[75, 85]"), ("4", "[85, 95]")]
multi_select = MultiSelect(value=[], options=OPTIONS)
multi_select.js_on_change("value", CustomJS(code="""
console.log('multi_select: value=' + this.value, this.toString())
"""))
db = _get_conn()
df1 = pd.read_sql_query(sql, db, params=[65.0, 75.0])
show(multi_select)


