File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ UNRELEASED]
9
9
10
+ * Fixes 'AttributeError: object has no attribute "_ repr_mimebundle_ "'. (#184 )
10
11
11
12
## [ 0.5.0] - 2025-01-29
12
13
Original file line number Diff line number Diff line change @@ -125,7 +125,8 @@ def _open_shiny_comm():
125
125
# Call _repr_mimebundle_() before get_state() since it may modify the widget
126
126
# in an important way (unfortunately, it does for plotly)
127
127
# # https://github.com/plotly/plotly.py/blob/0089f32/packages/python/plotly/plotly/basewidget.py#L734-L738
128
- w ._repr_mimebundle_ ()
128
+ if hasattr (w , "_repr_mimebundle_" ) and callable (w ._repr_mimebundle_ ):
129
+ w ._repr_mimebundle_ ()
129
130
130
131
# Now, get the state
131
132
state , buffer_paths , buffers = _remove_buffers (w .get_state ())
You can’t perform that action at this time.
0 commit comments