# How do I manually trigger a DynamicMap stream or \`pn.bind\`?

**URL:** <https://discourse.holoviz.org/t/how-do-i-manually-trigger-a-dynamicmap-stream-or-pn-bind/2166>\
**Category:** Panel\
**Tags:** panel, holoviews\
**Created:** [April 19, 2021, 6:24pm UTC](https://discourse.holoviz.org/t/how-do-i-manually-trigger-a-dynamicmap-stream-or-pn-bind/2166 "2021-04-19T18:24:54Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [April 19, 2021, 6:24pm UTC](https://discourse.holoviz.org/t/how-do-i-manually-trigger-a-dynamicmap-stream-or-pn-bind/2166/1 "2021-04-19T18:24:54Z")

</div>

```auto
import numpy as np
import holoviews as hv
import panel as pn
pn.extension()
# create an empty Points element
points = hv.Points([])
# Create the Tap stream with the points element as the source
# We set the x and y here with starting values
stream = hv.streams.Tap(source=points, x=np.nan, y=np.nan)

# make a function that displays the location when called.
def location(x, y):
    """Display pane showing the x and y values"""
    print(x, y, 'hey')
    return pn.pane.Str('Click at %0.3f, %0.3f' % (x, y), width=200)

# Display the points and the function output, updated
# whenever the stream values change
bind = pn.bind(location, x=stream.param.x, y=stream.param.y)
layout = pn.Row(points, bind)
# display the container
layout

```

I was thinking of like:  
`bind.trigger("x")`

Similar to:  
`widget.param.trigger("value")`

---

<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:** [April 19, 2021, 6:31pm UTC](https://discourse.holoviz.org/t/how-do-i-manually-trigger-a-dynamicmap-stream-or-pn-bind/2166/2 "2021-04-19T18:31:51Z")

</div>

`stream.update(x=stream.x)` works
