@@ -241,9 +241,10 @@ class DataGrid(DOMWidget):
241241 auto_fit_columns : Bool (default: True)
242242 Specify whether column width should automatically be
243243 determined by the grid
244- auto_fit_params : Dict (default: {"area":"all", "padding":30, "numCols":None})
245- Specify column auto fit parameters. Supported parameters:
246- 1) area: where to resize column widths - 'row-header', 'body' or 'all' (default)
244+ auto_fit_params : Dict. Specify column auto fit parameters.
245+ Supported parameters:
246+ 1) area: where to resize column widths - 'row-header',
247+ 'body' or 'all' (default)
247248 2) padding: add padding to resized column widths (15 pixels by default)
248249 3) numCols: cap the number of columns to be resized (None)
249250 grid_style : Dict of {propertyName: string | VegaExpr | Dict}
@@ -340,8 +341,9 @@ class DataGrid(DOMWidget):
340341 column_widths = Dict ({}).tag (sync = True )
341342 grid_style = Dict (allow_none = True ).tag (sync = True , ** widget_serialization )
342343 auto_fit_columns = Bool (False ).tag (sync = True )
343- auto_fit_params = Dict (dict (area = "all" , padding = 30 , numCols = None ),
344- allow_none = False ).tag (sync = True , ** widget_serialization )
344+ auto_fit_params = Dict (
345+ {"area" : "all" , "padding" : 30 , "numCols" : None }, allow_none = False
346+ ).tag (sync = True , ** widget_serialization )
345347
346348 def __init__ (self , dataframe , ** kwargs ):
347349 # Setting default index name if not explicitly
0 commit comments