File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ def _data_to_json(x, obj):
167167 if isinstance (x , dict ):
168168 return {str (k ): _data_to_json (v , obj ) for k , v in x .items ()}
169169 elif isinstance (x , (list , tuple )):
170- return [_data_to_json (v , obj ) for v in x ]
170+ return [_data_to_json (v , str ( obj ) ) for v in x ]
171171 else :
172172 if isinstance (x , float ):
173173 if np .isnan (x ):
@@ -338,7 +338,7 @@ class DataGrid(DOMWidget):
338338 ).tag (sync = True )
339339 selections = List (Dict ()).tag (sync = True , ** widget_serialization )
340340 editable = Bool (False ).tag (sync = True )
341- column_widths = Dict ({}).tag (sync = True )
341+ column_widths = Dict ({}).tag (sync = True , ** _data_serialization )
342342 grid_style = Dict (allow_none = True ).tag (sync = True , ** widget_serialization )
343343 auto_fit_columns = Bool (False ).tag (sync = True )
344344 auto_fit_params = Dict (
You can’t perform that action at this time.
0 commit comments