# How does set\_in\_bounds work?

**URL:** <https://discourse.holoviz.org/t/how-does-set-in-bounds-work/5977>\
**Category:** Param\
**Created:** [September 6, 2023, 12:42am UTC](https://discourse.holoviz.org/t/how-does-set-in-bounds-work/5977 "2023-09-06T00:42:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LinuxIsCool](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/linuxiscool/32/276_2.png) [@LinuxIsCool](https://discourse.holoviz.org/u/LinuxIsCool)\
**Post date:** [September 6, 2023, 12:42am UTC](https://discourse.holoviz.org/t/how-does-set-in-bounds-work/5977/1 "2023-09-06T00:42:13Z")

</div>

Why does set\_in\_bounds take an obj parameter? What’s the typical use case look like?

It would be nice to go:

```python
my_object.param['my_param'].set_in_bounds(42)

```

Not clear from the documentation:  
[https://param.holoviz.org/reference.html#param.\_\_init\_\_.Number.set\_in\_bounds](https://param.holoviz.org/reference.html#param. __init__.Number.set_in_bounds)
