File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
## [ UNRELEASED]
9
9
10
10
* Fixed an issue where widgets would sometimes fail to render in a Quarto document. (#159 )
11
+ * Fixed an issue where importing shinywidgets before a ipywidget implementation can sometimes error in a Shiny Express app. (#163 )
11
12
12
13
## [ 0.3.3] - 2024-08-13
13
14
Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ def init_shiny_widget(w: Widget):
45
45
raise RuntimeError (
46
46
"shinywidgets requires that all ipywidgets be constructed within an active Shiny session"
47
47
)
48
+ # Wait until we're in a "real" session before doing anything
49
+ # (i.e., on the 1st run of an Express app, it's too early to do anything)
50
+ if session .is_stub_session ():
51
+ return
48
52
# Break out of any module-specific session. Otherwise, input.shinywidgets_comm_send
49
53
# will be some module-specific copy.
50
54
while hasattr (session , "_parent" ):
You can’t perform that action at this time.
0 commit comments