chrome bug patch

This commit is contained in:
Pierre Guillod 2024-09-08 10:11:13 +02:00
parent cc0f631952
commit f46bef8c92

View file

@ -16,7 +16,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 1, "execution_count": null,
"id": "e2abc871-bf82-4cf6-993e-cd904c7e7468", "id": "e2abc871-bf82-4cf6-993e-cd904c7e7468",
"metadata": { "metadata": {
"editable": true, "editable": true,
@ -43,7 +43,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 2, "execution_count": null,
"id": "529de80c-dd7f-45eb-b3c1-753b33d2bdb7", "id": "529de80c-dd7f-45eb-b3c1-753b33d2bdb7",
"metadata": { "metadata": {
"editable": true, "editable": true,
@ -52,23 +52,7 @@
}, },
"tags": [] "tags": []
}, },
"outputs": [ "outputs": [],
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c0176080a16b4a30a7e18ab24b942c09",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(VBox(children=(Dropdown(description='Région', options=(('Ville de Genève', 'geneva'), ('Région …"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [ "source": [
"places = {\n", "places = {\n",
" \"geneva\": {\"shorthand\": \"geneva\", \"friendly\": \"Ville de Genève\", \"label\": \"Geneva, Switzerland\", \"cars\": 44_000, \"node\": 2809410},\n", " \"geneva\": {\"shorthand\": \"geneva\", \"friendly\": \"Ville de Genève\", \"label\": \"Geneva, Switzerland\", \"cars\": 44_000, \"node\": 2809410},\n",
@ -241,7 +225,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 5, "execution_count": null,
"id": "f4440649-731e-421e-b43d-17576bb8ad3f", "id": "f4440649-731e-421e-b43d-17576bb8ad3f",
"metadata": { "metadata": {
"editable": true, "editable": true,
@ -250,23 +234,7 @@
}, },
"tags": [] "tags": []
}, },
"outputs": [ "outputs": [],
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "9f2e4d21173a48fa9b9d3f115fb84741",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(VBox(children=(HBox(children=(IntSlider(value=1, description='4400 véhic.', max=10, min=1, read…"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [ "source": [
"w_slider = widgets.IntSlider(\n", "w_slider = widgets.IntSlider(\n",
" min=1,\n", " min=1,\n",
@ -297,31 +265,10 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 4, "execution_count": null,
"id": "adf24613-a4ab-433f-8a1d-6e1d168163aa", "id": "adf24613-a4ab-433f-8a1d-6e1d168163aa",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [],
{
"data": {
"text/html": [
"\n",
"<style>\n",
"h1, p {\n",
" display: block !important;\n",
" max-width: 700px !important;\n",
" margin: 0 auto !important;\n",
"}\n",
"</style>\n"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [ "source": [
"from IPython.core.display import HTML\n", "from IPython.core.display import HTML\n",
"HTML(\"\"\"\n", "HTML(\"\"\"\n",
@ -330,6 +277,7 @@
" display: block !important;\n", " display: block !important;\n",
" max-width: 700px !important;\n", " max-width: 700px !important;\n",
" margin: 0 auto !important;\n", " margin: 0 auto !important;\n",
" overflow: hidden !important; /*chrome bug patch*/\n",
"}\n", "}\n",
"</style>\n", "</style>\n",
"\"\"\")" "\"\"\")"