light cleaning of custom library docs

pull/112/head
Nicholas Bollweg 2023-03-06 06:50:59 -06:00
rodzic 3628ddce73
commit a77c45e558
1 zmienionych plików z 27 dodań i 15 usunięć

Wyświetl plik

@ -16,7 +16,9 @@
"cell_type": "code",
"execution_count": null,
"id": "ff64bdc4-2dd5-4738-affc-36dab7c82584",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"import base64, json, urllib.parse, zlib\n",
@ -36,7 +38,9 @@
"cell_type": "code",
"execution_count": null,
"id": "8c582ec1-23ca-4e76-8733-cf8d8d7d8b46",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"library = [\n",
@ -91,7 +95,9 @@
"cell_type": "code",
"execution_count": null,
"id": "3e9a519c-a868-4d71-885e-fcafe41915fa",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"zlib_opts = dict(wbits=-15)\n",
@ -117,7 +123,9 @@
"cell_type": "code",
"execution_count": null,
"id": "63445943-ecea-441e-87f5-7d2f361b7c4d",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"library_json = json.dumps(\n",
@ -141,7 +149,9 @@
"cell_type": "code",
"execution_count": null,
"id": "82d193a9-2366-4df4-9263-84b65fa96c68",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"library_xml = f\"\"\"<mxlibrary>{library_json}</mxlibrary><!-- /my library -->\"\"\"\n",
@ -170,18 +180,14 @@
"cell_type": "code",
"execution_count": null,
"id": "3f062362-8691-42d9-b9d7-f4a29cf6c405",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"library_data_uri = f\"data:application/xml,{library_xml}\""
]
},
{
"cell_type": "markdown",
"id": "c59eeed7-8599-429e-a869-3964b4709964",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"id": "ca0d0acc-7186-4f81-83cf-fd93da83f59c",
@ -203,7 +209,9 @@
"cell_type": "code",
"execution_count": null,
"id": "5a89ad37-caf4-4174-90f0-ba51f7c98c3b",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"url_params = dict(ipydrawio.Diagram._default_url_params(None))\n",
@ -225,7 +233,9 @@
"cell_type": "code",
"execution_count": null,
"id": "938af1fe-a2b5-42a0-beee-c93d910b7dfd",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"url_params.update(ui=\"min\", libs=\"0\", p=\"\")"
@ -243,7 +253,9 @@
"cell_type": "code",
"execution_count": null,
"id": "91835331-2f68-48af-9ca1-c2512f25ded3",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"d = ipydrawio.Diagram(url_params=url_params, layout=dict(height=\"800px\"))\n",