Skip to content

Commit afb6c0e

Browse files
committed
refactoring
1 parent 750ff97 commit afb6c0e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

notebooks/03.Layout-and-Styling/03.01-widget-layout-and-styling.ipynb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@
374374
"items_layout = Layout(width='auto') # override the default width of the button to 'auto' to let the button grow\n",
375375
"\n",
376376
"box_layout = Layout(display='flex',\n",
377-
" flex_flow='column', \n",
377+
" flex_flow='column',\n",
378378
" align_items='stretch', \n",
379379
" border='solid',\n",
380380
" width='50%')\n",
@@ -401,9 +401,9 @@
401401
"from ipywidgets import Layout, Button, HBox\n",
402402
"\n",
403403
"items = [\n",
404-
" Button(description='weight=1', layout=Layout(flex='1 1 0%', width='auto'), button_style='danger'),\n",
405-
" Button(description='weight=3', layout=Layout(flex='3 1 0%', width='auto'), button_style='danger'),\n",
406-
" Button(description='weight=1', layout=Layout(flex='1 1 0%', width='auto'), button_style='danger'),\n",
404+
" Button(description='weight=1', layout=Layout(flex='1', width='auto'), button_style='danger'),\n",
405+
" Button(description='weight=3', layout=Layout(flex='3', width='auto'), button_style='danger'),\n",
406+
" Button(description='weight=1', layout=Layout(flex='1', width='auto'), button_style='danger'),\n",
407407
"]\n",
408408
"box_layout = Layout(align_items='stretch', width='70%')\n",
409409
"HBox(children=items, layout=box_layout)"
@@ -868,7 +868,6 @@
868868
"metadata": {},
869869
"outputs": [],
870870
"source": [
871-
"# Utils widgets\n",
872871
"from ipywidgets import Button, Layout, jslink, IntText, IntSlider\n",
873872
"\n",
874873
"def create_expanded_button(description, button_style):\n",
@@ -1468,7 +1467,7 @@
14681467
" layout=Layout(\n",
14691468
" width='50%',\n",
14701469
" grid_template_columns='100px 50px 100px',\n",
1471-
" grid_template_rows='80px auto 80px', \n",
1470+
" grid_template_rows='80px auto 80px',\n",
14721471
" grid_gap='5px 10px')\n",
14731472
" )"
14741473
]

0 commit comments

Comments
 (0)