|
34 | 34 | "outputs": [],
|
35 | 35 | "source": [
|
36 | 36 | "#| export\n",
|
| 37 | + "# %answer key/dashboard/widgets.py 3\n", |
| 38 | + "\n", |
37 | 39 | "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" |
39 | 41 | ]
|
40 | 42 | },
|
41 | 43 | {
|
|
276 | 278 | "outputs": [],
|
277 | 279 | "source": [
|
278 | 280 | "#| 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) " |
280 | 284 | ]
|
281 | 285 | },
|
282 | 286 | {
|
|
313 | 317 | "outputs": [],
|
314 | 318 | "source": [
|
315 | 319 | "#| 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" |
317 | 323 | ]
|
318 | 324 | },
|
319 | 325 | {
|
|
481 | 487 | "outputs": [],
|
482 | 488 | "source": [
|
483 | 489 | "#| export\n",
|
| 490 | + "# %answer key/dashboard/widgets.py 47\n", |
| 491 | + "\n", |
484 | 492 | "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", |
486 | 494 | "left_vbox"
|
487 | 495 | ]
|
488 | 496 | },
|
|
520 | 528 | "outputs": [],
|
521 | 529 | "source": [
|
522 | 530 | "#| 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" |
525 | 534 | ]
|
526 | 535 | },
|
527 | 536 | {
|
|
603 | 612 | "source": [
|
604 | 613 | "from nbdev.export import nb_export\n",
|
605 | 614 | "\n",
|
606 |
| - "nb_export('07_layout.ipynb', 'dashboard')\n", |
607 |
| - "nb_export('07_layout.ipynb', 'key/dashboard')" |
| 615 | + "nb_export('07_layout.ipynb', 'dashboard')" |
608 | 616 | ]
|
609 | 617 | },
|
610 | 618 | {
|
|
0 commit comments