\u001B[0;34m\u001B[0m\n\u001B[0;32m----> 1\u001B[0;31m \u001B[0mmask_label\u001B[0m \u001B[0;34m=\u001B[0m \u001B[0mw\u001B[0m\u001B[0;34m.\u001B[0m\u001B[0mLabel\u001B[0m\u001B[0;34m(\u001B[0m\u001B[0;34m\"Mask wearing:\"\u001B[0m\u001B[0;34m)\u001B[0m\u001B[0;34m\u001B[0m\u001B[0;34m\u001B[0m\u001B[0m\n\u001B[0m\u001B[1;32m 2\u001B[0m \u001B[0mmask_buttons\u001B[0m \u001B[0;34m=\u001B[0m \u001B[0mw\u001B[0m\u001B[0;34m.\u001B[0m\u001B[0mToggleButtons\u001B[0m\u001B[0;34m(\u001B[0m\u001B[0moptions\u001B[0m\u001B[0;34m=\u001B[0m\u001B[0;34m[\u001B[0m\u001B[0;34m\"Continuous\"\u001B[0m\u001B[0;34m,\u001B[0m \u001B[0;34m\"Removed when seated >2m\"\u001B[0m\u001B[0;34m]\u001B[0m\u001B[0;34m)\u001B[0m\u001B[0;34m\u001B[0m\u001B[0;34m\u001B[0m\u001B[0m\n\u001B[1;32m 3\u001B[0m \u001B[0mmask_box\u001B[0m \u001B[0;34m=\u001B[0m \u001B[0mw\u001B[0m\u001B[0;34m.\u001B[0m\u001B[0mVBox\u001B[0m\u001B[0;34m(\u001B[0m\u001B[0mchildren\u001B[0m\u001B[0;34m=\u001B[0m\u001B[0;34m(\u001B[0m\u001B[0mmask_label\u001B[0m\u001B[0;34m,\u001B[0m \u001B[0mmask_buttons\u001B[0m\u001B[0;34m)\u001B[0m\u001B[0;34m,\u001B[0m \u001B[0mlayout\u001B[0m\u001B[0;34m=\u001B[0m\u001B[0mw\u001B[0m\u001B[0;34m.\u001B[0m\u001B[0mLayout\u001B[0m\u001B[0;34m(\u001B[0m\u001B[0mpadding\u001B[0m\u001B[0;34m=\u001B[0m\u001B[0;34m'50px 0px 30px 0px'\u001B[0m\u001B[0;34m)\u001B[0m\u001B[0;34m)\u001B[0m\u001B[0;34m\u001B[0m\u001B[0;34m\u001B[0m\u001B[0m\n\u001B[1;32m 4\u001B[0m \u001B[0;34m\u001B[0m\u001B[0m\n\u001B[1;32m 5\u001B[0m info_box = w.HTML(value=''\n",
+ "\u001B[0;31mNameError\u001B[0m: name 'w' is not defined"
+ ]
+ }
+ ],
+ "source": [
+ "mask_label = w.Label(\"Mask wearing:\")\n",
+ "mask_buttons = w.ToggleButtons(options=[\"Continuous\", \"Removed when seated >2m\"])\n",
+ "mask_box = w.VBox(children=(mask_label, mask_buttons), layout=w.Layout(padding='50px 0px 30px 0px'))\n",
+ "\n",
+ "info_box = w.HTML(value=''\n",
+ " 'This tool estimates the risk of COVID-19 spread. It is based on current scientific data and '\n",
+ " 'can be used to provide an illustration for different real world scenarios.
'\n",
+ " 'How to use this tool:
'\n",
+ " 'Room data
'\n",
+ " 'Enter the data about the area you wish to study. You can find these in GIS, or by measuring '\n",
+ " 'them yourself.
For mechanical ventilation, you should check with a specialist for the '\n",
+ " 'air flow or air change rate.
'\n",
+ " 'Event data
'\n",
+ " 'Enter the total number of people and how many you assume are infected.
'\n",
+ " 'Activity types:
'\n",
+ " 'Office = typical scenario all persons seated, talking quietly.
'\n",
+ " 'Workshop = assembly workshop environment, all persons doing light exercise, talking.
'\n",
+ " 'Training = one person standing, talking, all others seated, breathing normally.
'\n",
+ " 'Seminar = As training, but all participants take turns in standing and talking.
'\n",
+ " 'You should specify if the event is a one off (give date) or recurrent use of the same space '\n",
+ " 'for the same activity, in which case tick the months when the activity takes place.
'\n",
+ " 'Specify if a lunch break should be included, and when it starts/stops.
'\n",
+ " 'If you will take coffee breaks, they are spread out evenly throughout the day, '\n",
+ " 'in addition to lunch.
Mask wearing: Specify if they are worn all the time, '\n",
+ " 'or only when less than 2 meters apart.
',\n",
+ " layout=w.Layout(padding='0px 0px 30px 0px'))\n",
+ "\n",
+ "report_button = w.Button(description=\"Generate report\")\n",
+ "\n",
+ "right_column = w.VBox(children=(mask_box, info_box, report_button), layout=w.Layout(width='35%'))"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "pycharm": {
+ "name": "#%%\n"
+ }
+ },
+ "outputs": [],
+ "source": [
+ "w.HBox(children=(left_column, middle_column, right_column))\n"
]
}
],