add intro section, but descriptions are cut off

This commit is contained in:
markus 2020-10-21 15:26:05 +02:00
parent 549cc7cbc2
commit aa229f4fb4
2 changed files with 44 additions and 3 deletions

View file

@ -288,4 +288,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}

View file

@ -2,14 +2,55 @@
"cells": [
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import ipywidgets as widgets"
"from ipywidgets import Label, Layout, Text, VBox"
]
},
{
"cell_type": "code",
"execution_count": 7,
"outputs": [
{
"data": {
"text/plain": "VBox(children=(Label(value='CARA Covid Calculator', layout=Layout(width='100%')), Text(value='', description='…",
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "81c2850558b347f0b3040231351aba9f"
}
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"title = Label(\"CARA Covid Calculator\")\n",
"simulation_text = Text(\n",
" placeholder=\"E.g. Workshop without masks\",\n",
" description=\"Simulation name: \"\n",
")\n",
"room_number_text = Text(\n",
" placeholder=\"E.g. 17/R-033\",\n",
" description=\"Room number: \"\n",
")\n",
"\n",
"intro = VBox(\n",
" children=(title, simulation_text, room_number_text)\n",
")\n",
"\n",
"intro\n"
],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%%\n"
}
}
}
],
"metadata": {