File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ def _():
197
197
198
198
# When the variable changes, either update marker colors or redraw the heatmap
199
199
@reactive .Effect
200
- @event (input .variable )
200
+ @reactive . event (input .variable )
201
201
def _ ():
202
202
zips = zips_in_bounds ()
203
203
if not show_markers ():
@@ -213,7 +213,7 @@ def _():
213
213
214
214
# When bounds change, maybe add new markers
215
215
@reactive .Effect
216
- @event (lambda : zips_in_bounds ())
216
+ @reactive . event (lambda : zips_in_bounds ())
217
217
def _ ():
218
218
if not show_markers ():
219
219
return
@@ -233,7 +233,7 @@ def _():
233
233
# Change from heatmap to markers: remove the heatmap and show markers
234
234
# Change from markers to heatmap: hide the markers and add the heatmap
235
235
@reactive .Effect
236
- @event (show_markers )
236
+ @reactive . event (show_markers )
237
237
def _ ():
238
238
if show_markers ():
239
239
map .remove_layer (layer_heatmap ())
@@ -419,7 +419,7 @@ def _():
419
419
# but I _think_ this'll get fixed in the next release of ipywidgets/ipyleaflet
420
420
# https://github.com/jupyter-widgets/ipywidgets/issues/3384
421
421
@reactive .Effect
422
- @event (selected_table_row )
422
+ @reactive . event (selected_table_row )
423
423
def _ ():
424
424
for x in table_map .layers :
425
425
if x .name .startswith ("marker" ):
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ def init_shiny_widget(w: Widget):
121
121
# Handle messages from the client. Note that widgets like qgrid send client->server messages
122
122
# to figure out things like what filter to be shown in the table.
123
123
@reactive .Effect
124
- @event (session .input ["shinywidgets_comm_send" ])
124
+ @reactive . event (session .input ["shinywidgets_comm_send" ])
125
125
def _ ():
126
126
msg_txt = session .input ["shinywidgets_comm_send" ]()
127
127
msg = json .loads (msg_txt )
You can’t perform that action at this time.
0 commit comments