# Get the Values of a Rangeslider

**URL:** <https://discourse.holoviz.org/t/get-the-values-of-a-rangeslider/1186>\
**Category:** Panel\
**Created:** [September 10, 2020, 1:16pm UTC](https://discourse.holoviz.org/t/get-the-values-of-a-rangeslider/1186 "2020-09-10T13:16:33Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jbednar](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/jbednar/32/23_2.png) [@jbednar](https://discourse.holoviz.org/u/jbednar)\
**Post date:** [September 13, 2020, 8:19pm UTC](https://discourse.holoviz.org/t/get-the-values-of-a-rangeslider/1186/4 "2020-09-13T20:19:03Z")

</div>

Carl’s approach is good too, but if you want to stay closer to your original example, the key is that inside the function, there’s no slider, just a value, so you don’t have to ask for the value. (The error message indicates that it’s _already_ a tuple, not a slider whose value you need to request.) Panel’s `depends` decorator is already taking care of pulling that value out and supplying it to the function. To make that clear, I’ve renamed your `Slider` and `Ensemble` names to be lower case (always reserving upper case for class names for clarity), and also renamed `Slider` inside the function so that you can distinguish between the slider widget object (now called `slider`) and the _value_ of the slider (`slider.value`, provided by Panel as a tuple called `xrange` to the `ensemble` function). Hope this helps!

```auto
import holoviews as hv
import panel as pn
from panel import widgets as pnw
import numpy as np
hv.extension('bokeh')
coords = np.random.rand(50,2)
points = hv.Points(coords)
slider = pnw.RangeSlider(start=0, step=0.1, end=1, name='Zeitraum')

@pn.depends(xrange=slider)
def ensemble(xrange):
    points=hv.Points(coords)
    points.opts(color='k', marker='+', xlim=xrange)
    return pn.Row(points)
pn.Row(ensemble, slider)

```

---

_[View the full topic](https://discourse.holoviz.org/t/get-the-values-of-a-rangeslider/1186)._
