Skip to content

Commit 3a5b64a

Browse files
committed
More lint fixes
Signed-off-by: Itay Dafna <[email protected]>
1 parent ec07c76 commit 3a5b64a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

examples/Column Width Auto-Fit.ipynb

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@
4141
"import pandas as pd\n",
4242
"from ipydatagrid import DataGrid\n",
4343
"\n",
44-
"df = pd.DataFrame(data={\"Col1HasAVeryLongName\":[1,2,4], \"Col2MediumName\": [4,5,6], \"Col3\":[7,8,9]})\n",
45-
"grid = DataGrid(df, index_name=\"index_column\", layout={\"height\":\"90px\"})\n",
44+
"df = pd.DataFrame(\n",
45+
" data={\n",
46+
" \"Col1HasAVeryLongName\": [1, 2, 4],\n",
47+
" \"Col2MediumName\": [4, 5, 6],\n",
48+
" \"Col3\": [7, 8, 9],\n",
49+
" }\n",
50+
")\n",
51+
"grid = DataGrid(df, index_name=\"index_column\", layout={\"height\": \"90px\"})\n",
4652
"grid"
4753
]
4854
},
@@ -73,11 +79,7 @@
7379
"metadata": {},
7480
"outputs": [],
7581
"source": [
76-
"grid.auto_fit_params = {\n",
77-
" \"area\": \"body\",\n",
78-
" \"padding\": 60,\n",
79-
" \"numCols\": 1\n",
80-
"}\n",
82+
"grid.auto_fit_params = {\"area\": \"body\", \"padding\": 60, \"numCols\": 1}\n",
8183
"grid.auto_fit_columns = True"
8284
]
8385
}

0 commit comments

Comments
 (0)