i just try to replicate Make interactive data workflows — Panel v1.3.1 using panel 1.3.1 however there is an error message when I serve it and also no interactive between fiter drop down value with the table
C:\Users\User\anaconda3\lib\site-packages\holoviews\core\util.py:1572: PanelDeprecationWarning: ‘param_value_if_widget’ is deprecated and will be removed in version 1.4, use ‘transform_reference’ instead.
value = param_value_if_widget(value)
how to solve that problems
is that anyone got the same experience?
Can you try updating to the latest version of hvplot 0.9.0?
hi @Hoxbro I updated hvplot ro 0.9.0 still have notification
import hvplot.pandas # Enable interactive
idf = df.interactive()
idf = idf[(idf[“species”] == species_widget) & (idf[“year”] >= year_widget)]
It works for me @rh1. Try upgrading HoloViews as well
Please also note that
hvplot.interactive has been generalized to
param.rx with the release of Param 2.0.
The example would now look like
import pandas as pd
import panel as pn
df = pd.read_csv('https://datasets.holoviz.org/penguins/v1/penguins.csv')
species_widget = pn.widgets.Select(name="species", options=["Adelie", "Gentoo", "Chinstrap"])
year_widget = pn.widgets.IntSlider(name="year", start=2007, end=2009)
idf = param.rx(df)
idf = idf[(idf["species"] == species_widget) & (idf["year"] >= year_widget)]
Thanks @Marc , It works when update holoviews to the latest version. thanks also for example using param, since no documentation in holoviz website regarding new param.