Hello everyone! I am working in jupyter with holoviews.streams and would like to adjust the length of Buffer through panel. But with my code below, it throws exception about the different variable types, is there a way to mange it?
import param
import holoviews as hv
from holoviews.streams import Pipe, Buffer
import panel as pn
class Controller(param.Parameterized):
window_size = param.Integer(360, bounds=(1, None))
_controls = Controller()
_dfstream = Buffer(pd.DataFrame({'x': [], 'y': []}, columns=['x', 'y']), length=_controls.param.window_size)#
test = hv.DynamicMap(hv.Points, streams=[_dfstream]).opts(width=950, height=350, ylim=(-1, 10*20), shared_axes=False)
pn.Column(_controls,test)
_dfstream.send(pd.DataFrame([(0, 1),(2, 2),(3, 3),(4, 4),(5, 5),(6, 6),(7, 7)], columns=['x', 'y']))
The error is next
'<' not supported between instances of 'int' and 'Integer'
Could you help me please?