Skip to content

Commit adfcfe7

Browse files
committed
Update states in examples
1 parent 7ede752 commit adfcfe7

37 files changed

+28377
-52986
lines changed

examples/01_introduction.ipynb

Lines changed: 67 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,26 @@
2626
},
2727
{
2828
"cell_type": "code",
29-
"execution_count": 13,
29+
"execution_count": 1,
3030
"id": "40c51747-64bc-49f2-90c0-c0ff79d24048",
3131
"metadata": {
32-
"id": "40c51747-64bc-49f2-90c0-c0ff79d24048"
32+
"id": "40c51747-64bc-49f2-90c0-c0ff79d24048",
33+
"outputId": "f703abaa-5a5a-4cad-f138-2a11f2595448",
34+
"colab": {
35+
"base_uri": "https://localhost:8080/"
36+
}
3337
},
34-
"outputs": [],
38+
"outputs": [
39+
{
40+
"output_type": "stream",
41+
"name": "stdout",
42+
"text": [
43+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m15.7/15.7 MB\u001b[0m \u001b[31m50.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
44+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.6/1.6 MB\u001b[0m \u001b[31m22.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
45+
"\u001b[?25h"
46+
]
47+
}
48+
],
3549
"source": [
3650
"%pip install yfiles_jupyter_graphs --quiet\n",
3751
"from yfiles_jupyter_graphs import GraphWidget"
@@ -49,7 +63,7 @@
4963
},
5064
{
5165
"cell_type": "code",
52-
"execution_count": 14,
66+
"execution_count": 2,
5367
"id": "01400028-72b5-47ff-a5bc-5d9f64f0df31",
5468
"metadata": {
5569
"id": "01400028-72b5-47ff-a5bc-5d9f64f0df31"
@@ -93,7 +107,7 @@
93107
},
94108
{
95109
"cell_type": "code",
96-
"execution_count": 15,
110+
"execution_count": 3,
97111
"id": "e09589a6-ce29-4da1-9578-90dc4b4394ba",
98112
"metadata": {
99113
"id": "e09589a6-ce29-4da1-9578-90dc4b4394ba"
@@ -128,17 +142,17 @@
128142
},
129143
{
130144
"cell_type": "code",
131-
"execution_count": 16,
145+
"execution_count": 4,
132146
"id": "055f895e-6934-45e4-8ed5-e1e423c9ce09",
133147
"metadata": {
134148
"id": "055f895e-6934-45e4-8ed5-e1e423c9ce09",
135-
"outputId": "69c2c53b-b072-4f1c-db6f-4b24288c093f",
149+
"outputId": "bd173bb6-2d08-4d5e-a362-b1533c745a47",
136150
"colab": {
137151
"base_uri": "https://localhost:8080/",
138152
"height": 517,
139153
"referenced_widgets": [
140-
"fdfdd5c491d3456eb6346141a833e381",
141-
"d3b86df3ae9942ca8de32531bcb6b2b4"
154+
"f08fffde161649b084677d02fc4d3f7c",
155+
"bda08776fd454bb3a8673c2fa96543ff"
142156
]
143157
}
144158
},
@@ -152,7 +166,7 @@
152166
"application/vnd.jupyter.widget-view+json": {
153167
"version_major": 2,
154168
"version_minor": 0,
155-
"model_id": "fdfdd5c491d3456eb6346141a833e381"
169+
"model_id": "f08fffde161649b084677d02fc4d3f7c"
156170
}
157171
},
158172
"metadata": {
@@ -186,11 +200,11 @@
186200
},
187201
{
188202
"cell_type": "code",
189-
"execution_count": 17,
203+
"execution_count": 5,
190204
"id": "6f5c56bf-c4d3-4dc1-a6dd-5e640d913d21",
191205
"metadata": {
192206
"id": "6f5c56bf-c4d3-4dc1-a6dd-5e640d913d21",
193-
"outputId": "a903d426-cfa2-4f8c-ee1f-4776138bc188",
207+
"outputId": "39817932-6b75-4849-dbfb-4d14a097c8f0",
194208
"colab": {
195209
"base_uri": "https://localhost:8080/"
196210
}
@@ -243,7 +257,7 @@
243257
]
244258
},
245259
"metadata": {},
246-
"execution_count": 17
260+
"execution_count": 5
247261
}
248262
],
249263
"source": [
@@ -264,11 +278,11 @@
264278
},
265279
{
266280
"cell_type": "code",
267-
"execution_count": 18,
281+
"execution_count": 6,
268282
"id": "43a47347-36c1-49af-a6bc-3207329fd54a",
269283
"metadata": {
270284
"id": "43a47347-36c1-49af-a6bc-3207329fd54a",
271-
"outputId": "a62c84e7-4838-48f1-e4eb-feccdda01ae8",
285+
"outputId": "8928570c-01d2-4d2b-a27a-fb583ac27684",
272286
"colab": {
273287
"base_uri": "https://localhost:8080/"
274288
}
@@ -282,38 +296,42 @@
282296
" 'start': 0,\n",
283297
" 'end': 'one',\n",
284298
" 'properties': {'since': '1992', 'label': 'knows'},\n",
285-
" 'label': 'knows',\n",
286299
" 'color': '#15AFAC',\n",
287300
" 'thickness_factor': 1.0,\n",
288-
" 'directed': True},\n",
301+
" 'directed': True,\n",
302+
" 'styles': {},\n",
303+
" 'label': 'knows'},\n",
289304
" {'id': 1,\n",
290305
" 'start': 'one',\n",
291306
" 'end': True,\n",
292307
" 'properties': {'label': 'knows', 'since': '1992'},\n",
293-
" 'label': 'knows',\n",
294308
" 'color': '#15AFAC',\n",
295309
" 'thickness_factor': 1.0,\n",
296-
" 'directed': True},\n",
310+
" 'directed': True,\n",
311+
" 'styles': {},\n",
312+
" 'label': 'knows'},\n",
297313
" {'id': 2.0,\n",
298314
" 'start': 2.0,\n",
299315
" 'end': True,\n",
300316
" 'properties': {'label': 'knows', 'since': '1992'},\n",
301-
" 'label': 'knows',\n",
302317
" 'color': '#15AFAC',\n",
303318
" 'thickness_factor': 1.0,\n",
304-
" 'directed': True},\n",
319+
" 'directed': True,\n",
320+
" 'styles': {},\n",
321+
" 'label': 'knows'},\n",
305322
" {'id': False,\n",
306323
" 'start': 0,\n",
307324
" 'end': 2.0,\n",
308325
" 'properties': {'label': 'knows', 'since': 234},\n",
309-
" 'label': 'knows',\n",
310326
" 'color': '#15AFAC',\n",
311327
" 'thickness_factor': 1.0,\n",
312-
" 'directed': True}]"
328+
" 'directed': True,\n",
329+
" 'styles': {},\n",
330+
" 'label': 'knows'}]"
313331
]
314332
},
315333
"metadata": {},
316-
"execution_count": 18
334+
"execution_count": 6
317335
}
318336
],
319337
"source": [
@@ -344,10 +362,10 @@
344362
},
345363
"widgets": {
346364
"application/vnd.jupyter.widget-state+json": {
347-
"fdfdd5c491d3456eb6346141a833e381": {
365+
"f08fffde161649b084677d02fc4d3f7c": {
348366
"model_module": "yfiles-jupyter-graphs",
349367
"model_name": "GraphModel",
350-
"model_module_version": "^1.8.1",
368+
"model_module_version": "^1.10.9",
351369
"state": {
352370
"_context_pane_mapping": [
353371
{
@@ -379,10 +397,11 @@
379397
"since": "1992",
380398
"label": "knows"
381399
},
382-
"label": "knows",
383400
"color": "#15AFAC",
384401
"thickness_factor": 1,
385-
"directed": true
402+
"directed": true,
403+
"styles": {},
404+
"label": "knows"
386405
},
387406
{
388407
"id": 1,
@@ -392,10 +411,11 @@
392411
"label": "knows",
393412
"since": "1992"
394413
},
395-
"label": "knows",
396414
"color": "#15AFAC",
397415
"thickness_factor": 1,
398-
"directed": true
416+
"directed": true,
417+
"styles": {},
418+
"label": "knows"
399419
},
400420
{
401421
"id": 2,
@@ -405,10 +425,11 @@
405425
"label": "knows",
406426
"since": "1992"
407427
},
408-
"label": "knows",
409428
"color": "#15AFAC",
410429
"thickness_factor": 1,
411-
"directed": true
430+
"directed": true,
431+
"styles": {},
432+
"label": "knows"
412433
},
413434
{
414435
"id": false,
@@ -418,17 +439,18 @@
418439
"label": "knows",
419440
"since": 234
420441
},
421-
"label": "knows",
422442
"color": "#15AFAC",
423443
"thickness_factor": 1,
424-
"directed": true
444+
"directed": true,
445+
"styles": {},
446+
"label": "knows"
425447
}
426448
],
427449
"_graph_layout": {},
428450
"_highlight": [],
429451
"_license": {},
430452
"_model_module": "yfiles-jupyter-graphs",
431-
"_model_module_version": "^1.8.1",
453+
"_model_module_version": "^1.10.9",
432454
"_model_name": "GraphModel",
433455
"_neighborhood": {},
434456
"_nodes": [
@@ -529,32 +551,27 @@
529551
},
530552
"_view_count": null,
531553
"_view_module": "yfiles-jupyter-graphs",
532-
"_view_module_version": "^1.8.1",
554+
"_view_module_version": "^1.10.9",
533555
"_view_name": "GraphView",
534-
"layout": "IPY_MODEL_d3b86df3ae9942ca8de32531bcb6b2b4",
535-
"tabbable": null,
536-
"tooltip": null
556+
"layout": "IPY_MODEL_bda08776fd454bb3a8673c2fa96543ff"
537557
}
538558
},
539-
"d3b86df3ae9942ca8de32531bcb6b2b4": {
559+
"bda08776fd454bb3a8673c2fa96543ff": {
540560
"model_module": "@jupyter-widgets/base",
541561
"model_name": "LayoutModel",
542-
"model_module_version": "2.0.0",
562+
"model_module_version": "1.2.0",
543563
"state": {
544564
"_model_module": "@jupyter-widgets/base",
545-
"_model_module_version": "2.0.0",
565+
"_model_module_version": "1.2.0",
546566
"_model_name": "LayoutModel",
547567
"_view_count": null,
548568
"_view_module": "@jupyter-widgets/base",
549-
"_view_module_version": "2.0.0",
569+
"_view_module_version": "1.2.0",
550570
"_view_name": "LayoutView",
551571
"align_content": null,
552572
"align_items": null,
553573
"align_self": null,
554-
"border_bottom": null,
555-
"border_left": null,
556-
"border_right": null,
557-
"border_top": null,
574+
"border": null,
558575
"bottom": null,
559576
"display": null,
560577
"flex": null,
@@ -582,14 +599,15 @@
582599
"object_position": null,
583600
"order": null,
584601
"overflow": null,
602+
"overflow_x": null,
603+
"overflow_y": null,
585604
"padding": null,
586605
"right": null,
587606
"top": null,
588607
"visibility": null,
589608
"width": "100%"
590609
}
591-
},
592-
"state": {}
610+
}
593611
}
594612
}
595613
},

0 commit comments

Comments
 (0)