Skip to content

Commit 6031416

Browse files
authored
Use pydeck.Deck's show() method instead of .deck_widget (#52)
Otherwise, nothing renders in the app until .update() is called explicitly
1 parent 8480f90 commit 6031416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shinywidgets/_shinywidgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def _as_widget(x: object) -> Widget:
241241
try:
242242
from pydeck.widget import DeckGLWidget
243243

244-
x = x.deck_widget
244+
x = x.show()
245245
except Exception as e:
246246
raise RuntimeError(f"Failed to coerce {x} into a DeckGLWidget: {e}")
247247

0 commit comments

Comments
 (0)