# Unable to update based on slide

**URL:** <https://discourse.holoviz.org/t/unable-to-update-based-on-slide/8782>\
**Category:** Panel\
**Tags:** panel, bug\
**Created:** [May 28, 2025, 12:23pm UTC](https://discourse.holoviz.org/t/unable-to-update-based-on-slide/8782 "2025-05-28T12:23:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cassandro](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/cassandro/32/7247_2.png) [@Cassandro](https://discourse.holoviz.org/u/Cassandro)\
**Post date:** [May 28, 2025, 12:23pm UTC](https://discourse.holoviz.org/t/unable-to-update-based-on-slide/8782/1 "2025-05-28T12:23:27Z")

</div>

#### ALL software version info

It seems that panel is not working correctly when it comes to updating based on a slide

> **Software Version Info**
>
> ```plaintext
> in vs code .ipynb file
> !pip install panel>=1.7.1 watchfiles bokeh>=3.3.0 jupyter_bokeh>=4.0.0 hvplot==0.11.0 matplotlib ipython --user
> Panel version: 1.7.1
> Bokeh version: 3.7.3
> Python version: 3.10.11 | packaged by conda-forge | (main, May 10 2023, 18:58:44) [GCC 11.3.0]
> Jupyter Notebook version: 6.5.4
> IPython version: 8.13.2
> 
> ```

#### Expected number of stars to change when slide number changes

#### 

```python
import panel as pn

pn.extension()

def model(n=5):
    return "⭐" * n

slider = pn.widgets.IntSlider(value=5, start=1, end=5)
interactive_model = pn.bind(model, n=slider)
layout = pn.Column(slider, interactive_model)
layout.servable()

```

#### Screenshots or screencasts of the bug in action

![Image](https://github.com/user-attachments/assets/42405b18-a667-41ff-ab6f-dbb45c10f959)

- I may be interested in making a pull request to address this

---

<div class="post-metadata">

**Author:** ![ahuang11](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ahuang11/32/4947_2.png) [@ahuang11](https://discourse.holoviz.org/u/ahuang11)\
**Post date:** [May 28, 2025, 3:45pm UTC](https://discourse.holoviz.org/t/unable-to-update-based-on-slide/8782/2 "2025-05-28T15:45:30Z")

</div>

Can you try trying it out with `layout.show()` and if that doesn’t work, do you have any browser console errors?

---

<div class="post-metadata">

**Author:** ![Cassandro](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/cassandro/32/7247_2.png) [@Cassandro](https://discourse.holoviz.org/u/Cassandro)\
**Post date:** [May 29, 2025, 11:04am UTC](https://discourse.holoviz.org/t/unable-to-update-based-on-slide/8782/3 "2025-05-29T11:04:17Z")

</div>

```auto
layout.show()

```

works since it shows things in a browser (when i execute with local kernel), however since I work in a remote kernel (without ssh), i can’t really see the localhost created
