Skip to content

Commit b513844

Browse files
committed
Finalize 07_layouts
1 parent dbfcfc4 commit b513844

File tree

2 files changed

+16
-96
lines changed

2 files changed

+16
-96
lines changed

07_layouts.ipynb

+16-8
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@
3434
"outputs": [],
3535
"source": [
3636
"#| export\n",
37+
"# %answer key/dashboard/widgets.py 3\n",
38+
"\n",
3739
"import ipywidgets as widgets\n",
38-
"from dashboard.widgets import year_range, poly_order, window_size, plot_output, selected_data_output # import year_range, poly_order, window_size, plot_output, selected_data_output"
40+
"# import year_range, poly_order, window_size, plot_output, selected_data_output"
3941
]
4042
},
4143
{
@@ -276,7 +278,9 @@
276278
"outputs": [],
277279
"source": [
278280
"#| export\n",
279-
"selected_data_accordion.children = (selected_data_output, ) # selected_data_accordion.children = (selected_data_output, )"
281+
"# %answer key/dashboard/widgets.py 28\n",
282+
"\n",
283+
"# selected_data_accordion.children = (selected_data_output) "
280284
]
281285
},
282286
{
@@ -313,7 +317,9 @@
313317
"outputs": [],
314318
"source": [
315319
"#| export\n",
316-
"selected_data_accordion.selected_index = 0 # selected_data_accordion.selected_index"
320+
"# %answer key/dashboard/widgets.py 32\n",
321+
"\n",
322+
"selected_data_accordion.selected_index"
317323
]
318324
},
319325
{
@@ -481,8 +487,10 @@
481487
"outputs": [],
482488
"source": [
483489
"#| export\n",
490+
"# %answer key/dashboard/widgets.py 47\n",
491+
"\n",
484492
"left_vbox = widgets.VBox()\n",
485-
"left_vbox.children = (intro_text, data_source_text, year_range, curve_parameter_widgets) #(intro_text, data_source_text, year_range, curve_parameter_widgets) # add year_range, selected_data_accordion, curve_parameter_widgets to the VBox\n",
493+
"# add children intro_text, data_source_text, year_range, curve_parameter_widgets\n",
486494
"left_vbox"
487495
]
488496
},
@@ -520,8 +528,9 @@
520528
"outputs": [],
521529
"source": [
522530
"#| export\n",
523-
"for child in left_vbox.children: # how might we add padding to each of the widgets\n",
524-
" child.layout.margin = '15px 0 15px 0' #"
531+
"# %answer key/dashboard/widgets.py 51\n",
532+
"\n",
533+
"# how might we add padding to each of the widgets"
525534
]
526535
},
527536
{
@@ -603,8 +612,7 @@
603612
"source": [
604613
"from nbdev.export import nb_export\n",
605614
"\n",
606-
"nb_export('07_layout.ipynb', 'dashboard')\n",
607-
"nb_export('07_layout.ipynb', 'key/dashboard')"
615+
"nb_export('07_layout.ipynb', 'dashboard')"
608616
]
609617
},
610618
{

dashboard/main.py

-88
This file was deleted.

0 commit comments

Comments
 (0)