@datalayer/agent-runtimes 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/README.md +9 -0
  2. package/lib/components/chat/components/AgentDetails.d.ts +14 -1
  3. package/lib/components/chat/components/AgentDetails.js +3 -2
  4. package/lib/components/chat/components/AgentIdentity.d.ts +92 -0
  5. package/lib/components/chat/components/AgentIdentity.js +318 -0
  6. package/lib/components/chat/components/Chat.d.ts +20 -1
  7. package/lib/components/chat/components/Chat.js +16 -3
  8. package/lib/components/chat/components/ChatFloating.d.ts +6 -1
  9. package/lib/components/chat/components/ChatFloating.js +12 -6
  10. package/lib/components/chat/components/base/ChatBase.d.ts +47 -1
  11. package/lib/components/chat/components/base/ChatBase.js +242 -63
  12. package/lib/components/chat/components/display/ToolCallDisplay.d.ts +16 -2
  13. package/lib/components/chat/components/display/ToolCallDisplay.js +148 -6
  14. package/lib/components/chat/components/display/index.d.ts +1 -1
  15. package/lib/components/chat/components/display/index.js +1 -1
  16. package/lib/components/chat/components/elements/ChatInputPrompt.d.ts +12 -1
  17. package/lib/components/chat/components/elements/ChatInputPrompt.js +8 -3
  18. package/lib/components/chat/components/index.d.ts +1 -0
  19. package/lib/components/chat/components/index.js +1 -0
  20. package/lib/components/chat/components/parts/ToolPart.d.ts +1 -1
  21. package/lib/components/chat/components/parts/ToolPart.js +142 -6
  22. package/lib/components/chat/index.d.ts +1 -1
  23. package/lib/components/chat/index.js +1 -1
  24. package/lib/components/chat/protocols/A2AAdapter.d.ts +9 -0
  25. package/lib/components/chat/protocols/A2AAdapter.js +13 -2
  26. package/lib/components/chat/protocols/ACPAdapter.d.ts +9 -0
  27. package/lib/components/chat/protocols/ACPAdapter.js +13 -2
  28. package/lib/components/chat/protocols/AGUIAdapter.d.ts +9 -0
  29. package/lib/components/chat/protocols/AGUIAdapter.js +19 -1
  30. package/lib/components/chat/protocols/VercelAIAdapter.d.ts +7 -0
  31. package/lib/components/chat/protocols/VercelAIAdapter.js +19 -0
  32. package/lib/components/chat/types/execution.d.ts +78 -0
  33. package/lib/components/chat/types/execution.js +64 -0
  34. package/lib/components/chat/types/index.d.ts +1 -0
  35. package/lib/components/chat/types/index.js +1 -0
  36. package/lib/components/chat/types/protocol.d.ts +9 -0
  37. package/lib/components/ui/pagination.d.ts +2 -2
  38. package/lib/components/ui/pagination.js +4 -4
  39. package/lib/components/ui/resizable.d.ts +4 -4
  40. package/lib/components/ui/resizable.js +4 -4
  41. package/lib/examples/A2UiRestaurantExample.js +2 -2
  42. package/lib/examples/AgUiAgenticExample.js +2 -2
  43. package/lib/examples/AgUiBackendToolRenderingExample.js +2 -2
  44. package/lib/examples/AgUiHaikuGenUIExample.js +2 -2
  45. package/lib/examples/AgUiHumanInTheLoopExample.js +2 -2
  46. package/lib/examples/AgUiSharedStateExample.js +2 -2
  47. package/lib/examples/AgUiToolsBasedGenUIExample.js +2 -2
  48. package/lib/examples/AgentRuntimeCustomExample.js +2 -2
  49. package/lib/examples/AgentRuntimeLexical2Example.js +2 -1
  50. package/lib/examples/AgentRuntimeLexicalExample.js +5 -2
  51. package/lib/examples/AgentRuntimeLexicalSidebarExample.js +4 -2
  52. package/lib/examples/AgentRuntimeNotebookExample.js +1 -1
  53. package/lib/examples/AgentRuntimeStandaloneExample.js +2 -2
  54. package/lib/examples/AgentSpaceFormExample.d.ts +70 -2
  55. package/lib/examples/AgentSpaceFormExample.js +177 -43
  56. package/lib/examples/CopilotKitLexicalExample.js +2 -1
  57. package/lib/examples/components/AgentConfiguration.d.ts +17 -2
  58. package/lib/examples/components/AgentConfiguration.js +220 -16
  59. package/lib/examples/components/LexicalEditor.js +2 -1
  60. package/lib/examples/components/MockFileBrowser.js +6 -2
  61. package/lib/examples/components/index.d.ts +0 -1
  62. package/lib/examples/components/index.js +0 -1
  63. package/lib/examples/example-selector.js +0 -1
  64. package/lib/examples/index.d.ts +0 -1
  65. package/lib/examples/index.js +0 -1
  66. package/lib/examples/lexical/editorConfig.d.ts +3 -2
  67. package/lib/examples/lexical/editorConfig.js +7 -1
  68. package/lib/examples/lexical/initial-content.json +2210 -0
  69. package/lib/examples/main.js +15 -1
  70. package/lib/identity/IdentityConnect.d.ts +90 -0
  71. package/lib/identity/IdentityConnect.js +316 -0
  72. package/lib/identity/OAuthCallback.d.ts +58 -0
  73. package/lib/identity/OAuthCallback.js +223 -0
  74. package/lib/identity/dcr.d.ts +257 -0
  75. package/lib/identity/dcr.js +282 -0
  76. package/lib/identity/identityStore.d.ts +72 -0
  77. package/lib/identity/identityStore.js +529 -0
  78. package/lib/identity/index.d.ts +46 -0
  79. package/lib/identity/index.js +17 -0
  80. package/lib/identity/pkce.d.ts +30 -0
  81. package/lib/identity/pkce.js +65 -0
  82. package/lib/identity/types.d.ts +293 -0
  83. package/lib/identity/types.js +73 -0
  84. package/lib/identity/useIdentity.d.ts +108 -0
  85. package/lib/identity/useIdentity.js +323 -0
  86. package/lib/index.d.ts +1 -0
  87. package/lib/index.js +1 -0
  88. package/lib/lib/utils.js +1 -1
  89. package/lib/renderers/a2ui/lib/utils.js +1 -1
  90. package/lib/test-setup.d.ts +1 -1
  91. package/lib/test-setup.js +1 -0
  92. package/lib/tools/adapters/agent-runtimes/AgentRuntimesToolAdapter.js +32 -1
  93. package/lib/tools/adapters/agent-runtimes/lexicalHooks.d.ts +6 -0
  94. package/lib/tools/adapters/agent-runtimes/lexicalHooks.js +16 -17
  95. package/package.json +20 -7
  96. package/patches/@datalayer+jupyter-lexical+1.0.8.patch +11628 -0
  97. package/patches/@datalayer+jupyter-react+2.0.2.patch +5338 -0
  98. package/scripts/apply-patches.sh +32 -0
  99. package/lib/examples/AgentSpaceHomeExample.d.ts +0 -8
  100. package/lib/examples/AgentSpaceHomeExample.js +0 -171
  101. package/lib/examples/components/AgentsDataTable.d.ts +0 -13
  102. package/lib/examples/components/AgentsDataTable.js +0 -74
  103. package/lib/examples/components/Rating.d.ts +0 -14
  104. package/lib/examples/components/Rating.js +0 -12
@@ -0,0 +1,2210 @@
1
+ {
2
+ "root": {
3
+ "children": [
4
+ {
5
+ "children": [
6
+ {
7
+ "detail": 0,
8
+ "format": 1,
9
+ "mode": "normal",
10
+ "style": "",
11
+ "text": "Lexical Editor - Complete Feature Showcase",
12
+ "type": "text",
13
+ "version": 1
14
+ }
15
+ ],
16
+ "direction": "ltr",
17
+ "format": "",
18
+ "indent": 0,
19
+ "type": "heading",
20
+ "version": 1,
21
+ "tag": "h1"
22
+ },
23
+ {
24
+ "children": [
25
+ {
26
+ "detail": 0,
27
+ "format": 0,
28
+ "mode": "normal",
29
+ "style": "",
30
+ "text": "This example demonstrates ",
31
+ "type": "text",
32
+ "version": 1
33
+ },
34
+ {
35
+ "detail": 0,
36
+ "format": 1,
37
+ "mode": "normal",
38
+ "style": "",
39
+ "text": "all major features",
40
+ "type": "text",
41
+ "version": 1
42
+ },
43
+ {
44
+ "detail": 0,
45
+ "format": 0,
46
+ "mode": "normal",
47
+ "style": "",
48
+ "text": " of the Lexical editor: rich text formatting, tables, collapsibles, Excalidraw diagrams, equations, images, code blocks, lists, and Jupyter code execution. Use ",
49
+ "type": "text",
50
+ "version": 1
51
+ },
52
+ {
53
+ "detail": 0,
54
+ "format": 8,
55
+ "mode": "normal",
56
+ "style": "",
57
+ "text": "/",
58
+ "type": "text",
59
+ "version": 1
60
+ },
61
+ {
62
+ "detail": 0,
63
+ "format": 0,
64
+ "mode": "normal",
65
+ "style": "",
66
+ "text": " to open the command menu.",
67
+ "type": "text",
68
+ "version": 1
69
+ }
70
+ ],
71
+ "direction": "ltr",
72
+ "format": "",
73
+ "indent": 0,
74
+ "type": "paragraph",
75
+ "version": 1
76
+ },
77
+ {
78
+ "type": "horizontalrule",
79
+ "version": 1
80
+ },
81
+ {
82
+ "children": [
83
+ {
84
+ "detail": 0,
85
+ "format": 1,
86
+ "mode": "normal",
87
+ "style": "",
88
+ "text": "1. Text Formatting",
89
+ "type": "text",
90
+ "version": 1
91
+ }
92
+ ],
93
+ "direction": "ltr",
94
+ "format": "",
95
+ "indent": 0,
96
+ "type": "heading",
97
+ "version": 1,
98
+ "tag": "h2"
99
+ },
100
+ {
101
+ "children": [
102
+ {
103
+ "detail": 0,
104
+ "format": 0,
105
+ "mode": "normal",
106
+ "style": "",
107
+ "text": "Text can be ",
108
+ "type": "text",
109
+ "version": 1
110
+ },
111
+ {
112
+ "detail": 0,
113
+ "format": 1,
114
+ "mode": "normal",
115
+ "style": "",
116
+ "text": "bold",
117
+ "type": "text",
118
+ "version": 1
119
+ },
120
+ {
121
+ "detail": 0,
122
+ "format": 0,
123
+ "mode": "normal",
124
+ "style": "",
125
+ "text": ", ",
126
+ "type": "text",
127
+ "version": 1
128
+ },
129
+ {
130
+ "detail": 0,
131
+ "format": 2,
132
+ "mode": "normal",
133
+ "style": "",
134
+ "text": "italic",
135
+ "type": "text",
136
+ "version": 1
137
+ },
138
+ {
139
+ "detail": 0,
140
+ "format": 0,
141
+ "mode": "normal",
142
+ "style": "",
143
+ "text": ", ",
144
+ "type": "text",
145
+ "version": 1
146
+ },
147
+ {
148
+ "detail": 0,
149
+ "format": 8,
150
+ "mode": "normal",
151
+ "style": "",
152
+ "text": "underlined",
153
+ "type": "text",
154
+ "version": 1
155
+ },
156
+ {
157
+ "detail": 0,
158
+ "format": 0,
159
+ "mode": "normal",
160
+ "style": "",
161
+ "text": ", ",
162
+ "type": "text",
163
+ "version": 1
164
+ },
165
+ {
166
+ "detail": 0,
167
+ "format": 4,
168
+ "mode": "normal",
169
+ "style": "",
170
+ "text": "strikethrough",
171
+ "type": "text",
172
+ "version": 1
173
+ },
174
+ {
175
+ "detail": 0,
176
+ "format": 0,
177
+ "mode": "normal",
178
+ "style": "",
179
+ "text": ", and ",
180
+ "type": "text",
181
+ "version": 1
182
+ },
183
+ {
184
+ "detail": 0,
185
+ "format": 16,
186
+ "mode": "normal",
187
+ "style": "",
188
+ "text": "inline code",
189
+ "type": "text",
190
+ "version": 1
191
+ },
192
+ {
193
+ "detail": 0,
194
+ "format": 0,
195
+ "mode": "normal",
196
+ "style": "",
197
+ "text": ". You can also visit ",
198
+ "type": "text",
199
+ "version": 1
200
+ },
201
+ {
202
+ "children": [
203
+ {
204
+ "detail": 0,
205
+ "format": 0,
206
+ "mode": "normal",
207
+ "style": "",
208
+ "text": "https://datalayer.io",
209
+ "type": "text",
210
+ "version": 1
211
+ }
212
+ ],
213
+ "direction": "ltr",
214
+ "format": "",
215
+ "indent": 0,
216
+ "type": "link",
217
+ "version": 1,
218
+ "rel": "noreferrer",
219
+ "target": "_blank",
220
+ "title": null,
221
+ "url": "https://datalayer.io"
222
+ },
223
+ {
224
+ "detail": 0,
225
+ "format": 0,
226
+ "mode": "normal",
227
+ "style": "",
228
+ "text": " (auto-linked URL).",
229
+ "type": "text",
230
+ "version": 1
231
+ }
232
+ ],
233
+ "direction": "ltr",
234
+ "format": "",
235
+ "indent": 0,
236
+ "type": "paragraph",
237
+ "version": 1
238
+ },
239
+ {
240
+ "children": [
241
+ {
242
+ "detail": 0,
243
+ "format": 1,
244
+ "mode": "normal",
245
+ "style": "",
246
+ "text": "Heading 3",
247
+ "type": "text",
248
+ "version": 1
249
+ }
250
+ ],
251
+ "direction": "ltr",
252
+ "format": "",
253
+ "indent": 0,
254
+ "type": "heading",
255
+ "version": 1,
256
+ "tag": "h3"
257
+ },
258
+ {
259
+ "children": [
260
+ {
261
+ "detail": 0,
262
+ "format": 0,
263
+ "mode": "normal",
264
+ "style": "",
265
+ "text": "Headings from H1 to H6 are supported.",
266
+ "type": "text",
267
+ "version": 1
268
+ }
269
+ ],
270
+ "direction": "ltr",
271
+ "format": "",
272
+ "indent": 0,
273
+ "type": "paragraph",
274
+ "version": 1
275
+ },
276
+ {
277
+ "type": "horizontalrule",
278
+ "version": 1
279
+ },
280
+ {
281
+ "children": [
282
+ {
283
+ "detail": 0,
284
+ "format": 1,
285
+ "mode": "normal",
286
+ "style": "",
287
+ "text": "2. Lists",
288
+ "type": "text",
289
+ "version": 1
290
+ }
291
+ ],
292
+ "direction": "ltr",
293
+ "format": "",
294
+ "indent": 0,
295
+ "type": "heading",
296
+ "version": 1,
297
+ "tag": "h2"
298
+ },
299
+ {
300
+ "children": [
301
+ {
302
+ "detail": 0,
303
+ "format": 1,
304
+ "mode": "normal",
305
+ "style": "",
306
+ "text": "Bulleted List:",
307
+ "type": "text",
308
+ "version": 1
309
+ }
310
+ ],
311
+ "direction": "ltr",
312
+ "format": "",
313
+ "indent": 0,
314
+ "type": "paragraph",
315
+ "version": 1
316
+ },
317
+ {
318
+ "children": [
319
+ {
320
+ "children": [
321
+ {
322
+ "detail": 0,
323
+ "format": 0,
324
+ "mode": "normal",
325
+ "style": "",
326
+ "text": "First item",
327
+ "type": "text",
328
+ "version": 1
329
+ }
330
+ ],
331
+ "direction": "ltr",
332
+ "format": "",
333
+ "indent": 0,
334
+ "type": "listitem",
335
+ "version": 1,
336
+ "value": 1
337
+ },
338
+ {
339
+ "children": [
340
+ {
341
+ "detail": 0,
342
+ "format": 0,
343
+ "mode": "normal",
344
+ "style": "",
345
+ "text": "Second item",
346
+ "type": "text",
347
+ "version": 1
348
+ }
349
+ ],
350
+ "direction": "ltr",
351
+ "format": "",
352
+ "indent": 0,
353
+ "type": "listitem",
354
+ "version": 1,
355
+ "value": 2
356
+ },
357
+ {
358
+ "children": [
359
+ {
360
+ "detail": 0,
361
+ "format": 0,
362
+ "mode": "normal",
363
+ "style": "",
364
+ "text": "Third item",
365
+ "type": "text",
366
+ "version": 1
367
+ }
368
+ ],
369
+ "direction": "ltr",
370
+ "format": "",
371
+ "indent": 0,
372
+ "type": "listitem",
373
+ "version": 1,
374
+ "value": 3
375
+ }
376
+ ],
377
+ "direction": "ltr",
378
+ "format": "",
379
+ "indent": 0,
380
+ "type": "list",
381
+ "version": 1,
382
+ "listType": "bullet",
383
+ "start": 1,
384
+ "tag": "ul"
385
+ },
386
+ {
387
+ "children": [
388
+ {
389
+ "detail": 0,
390
+ "format": 1,
391
+ "mode": "normal",
392
+ "style": "",
393
+ "text": "Numbered List:",
394
+ "type": "text",
395
+ "version": 1
396
+ }
397
+ ],
398
+ "direction": "ltr",
399
+ "format": "",
400
+ "indent": 0,
401
+ "type": "paragraph",
402
+ "version": 1
403
+ },
404
+ {
405
+ "children": [
406
+ {
407
+ "children": [
408
+ {
409
+ "detail": 0,
410
+ "format": 0,
411
+ "mode": "normal",
412
+ "style": "",
413
+ "text": "Step one",
414
+ "type": "text",
415
+ "version": 1
416
+ }
417
+ ],
418
+ "direction": "ltr",
419
+ "format": "",
420
+ "indent": 0,
421
+ "type": "listitem",
422
+ "version": 1,
423
+ "value": 1
424
+ },
425
+ {
426
+ "children": [
427
+ {
428
+ "detail": 0,
429
+ "format": 0,
430
+ "mode": "normal",
431
+ "style": "",
432
+ "text": "Step two",
433
+ "type": "text",
434
+ "version": 1
435
+ }
436
+ ],
437
+ "direction": "ltr",
438
+ "format": "",
439
+ "indent": 0,
440
+ "type": "listitem",
441
+ "version": 1,
442
+ "value": 2
443
+ },
444
+ {
445
+ "children": [
446
+ {
447
+ "detail": 0,
448
+ "format": 0,
449
+ "mode": "normal",
450
+ "style": "",
451
+ "text": "Step three",
452
+ "type": "text",
453
+ "version": 1
454
+ }
455
+ ],
456
+ "direction": "ltr",
457
+ "format": "",
458
+ "indent": 0,
459
+ "type": "listitem",
460
+ "version": 1,
461
+ "value": 3
462
+ }
463
+ ],
464
+ "direction": "ltr",
465
+ "format": "",
466
+ "indent": 0,
467
+ "type": "list",
468
+ "version": 1,
469
+ "listType": "number",
470
+ "start": 1,
471
+ "tag": "ol"
472
+ },
473
+ {
474
+ "children": [
475
+ {
476
+ "detail": 0,
477
+ "format": 1,
478
+ "mode": "normal",
479
+ "style": "",
480
+ "text": "Checklist:",
481
+ "type": "text",
482
+ "version": 1
483
+ }
484
+ ],
485
+ "direction": "ltr",
486
+ "format": "",
487
+ "indent": 0,
488
+ "type": "paragraph",
489
+ "version": 1
490
+ },
491
+ {
492
+ "children": [
493
+ {
494
+ "checked": true,
495
+ "children": [
496
+ {
497
+ "detail": 0,
498
+ "format": 0,
499
+ "mode": "normal",
500
+ "style": "",
501
+ "text": "Tables working",
502
+ "type": "text",
503
+ "version": 1
504
+ }
505
+ ],
506
+ "direction": "ltr",
507
+ "format": "",
508
+ "indent": 0,
509
+ "type": "listitem",
510
+ "version": 1,
511
+ "value": 1
512
+ },
513
+ {
514
+ "checked": true,
515
+ "children": [
516
+ {
517
+ "detail": 0,
518
+ "format": 0,
519
+ "mode": "normal",
520
+ "style": "",
521
+ "text": "Collapsibles working",
522
+ "type": "text",
523
+ "version": 1
524
+ }
525
+ ],
526
+ "direction": "ltr",
527
+ "format": "",
528
+ "indent": 0,
529
+ "type": "listitem",
530
+ "version": 1,
531
+ "value": 2
532
+ },
533
+ {
534
+ "checked": true,
535
+ "children": [
536
+ {
537
+ "detail": 0,
538
+ "format": 0,
539
+ "mode": "normal",
540
+ "style": "",
541
+ "text": "Excalidraw working",
542
+ "type": "text",
543
+ "version": 1
544
+ }
545
+ ],
546
+ "direction": "ltr",
547
+ "format": "",
548
+ "indent": 0,
549
+ "type": "listitem",
550
+ "version": 1,
551
+ "value": 3
552
+ },
553
+ {
554
+ "checked": false,
555
+ "children": [
556
+ {
557
+ "detail": 0,
558
+ "format": 0,
559
+ "mode": "normal",
560
+ "style": "",
561
+ "text": "More features to explore!",
562
+ "type": "text",
563
+ "version": 1
564
+ }
565
+ ],
566
+ "direction": "ltr",
567
+ "format": "",
568
+ "indent": 0,
569
+ "type": "listitem",
570
+ "version": 1,
571
+ "value": 4
572
+ }
573
+ ],
574
+ "direction": "ltr",
575
+ "format": "",
576
+ "indent": 0,
577
+ "type": "list",
578
+ "version": 1,
579
+ "listType": "check",
580
+ "start": 1,
581
+ "tag": "ul"
582
+ },
583
+ {
584
+ "type": "horizontalrule",
585
+ "version": 1
586
+ },
587
+ {
588
+ "children": [
589
+ {
590
+ "detail": 0,
591
+ "format": 1,
592
+ "mode": "normal",
593
+ "style": "",
594
+ "text": "3. Quote Blocks",
595
+ "type": "text",
596
+ "version": 1
597
+ }
598
+ ],
599
+ "direction": "ltr",
600
+ "format": "",
601
+ "indent": 0,
602
+ "type": "heading",
603
+ "version": 1,
604
+ "tag": "h2"
605
+ },
606
+ {
607
+ "children": [
608
+ {
609
+ "detail": 0,
610
+ "format": 0,
611
+ "mode": "normal",
612
+ "style": "",
613
+ "text": "The best way to predict the future is to invent it.",
614
+ "type": "text",
615
+ "version": 1
616
+ }
617
+ ],
618
+ "direction": "ltr",
619
+ "format": "",
620
+ "indent": 0,
621
+ "type": "quote",
622
+ "version": 1
623
+ },
624
+ {
625
+ "children": [
626
+ {
627
+ "detail": 0,
628
+ "format": 2,
629
+ "mode": "normal",
630
+ "style": "",
631
+ "text": "— Alan Kay",
632
+ "type": "text",
633
+ "version": 1
634
+ }
635
+ ],
636
+ "direction": "ltr",
637
+ "format": "right",
638
+ "indent": 0,
639
+ "type": "paragraph",
640
+ "version": 1
641
+ },
642
+ {
643
+ "type": "horizontalrule",
644
+ "version": 1
645
+ },
646
+ {
647
+ "children": [
648
+ {
649
+ "detail": 0,
650
+ "format": 1,
651
+ "mode": "normal",
652
+ "style": "",
653
+ "text": "4. Code Blocks",
654
+ "type": "text",
655
+ "version": 1
656
+ }
657
+ ],
658
+ "direction": "ltr",
659
+ "format": "",
660
+ "indent": 0,
661
+ "type": "heading",
662
+ "version": 1,
663
+ "tag": "h2"
664
+ },
665
+ {
666
+ "children": [
667
+ {
668
+ "detail": 0,
669
+ "format": 0,
670
+ "mode": "normal",
671
+ "style": "",
672
+ "text": "Python example:",
673
+ "type": "text",
674
+ "version": 1
675
+ }
676
+ ],
677
+ "direction": "ltr",
678
+ "format": "",
679
+ "indent": 0,
680
+ "type": "paragraph",
681
+ "version": 1
682
+ },
683
+ {
684
+ "children": [
685
+ {
686
+ "detail": 0,
687
+ "format": 0,
688
+ "mode": "normal",
689
+ "style": "",
690
+ "text": "def greet(name):\n return f\"Hello, {name}!\"\n\nprint(greet(\"World\"))",
691
+ "type": "text",
692
+ "version": 1
693
+ }
694
+ ],
695
+ "direction": "ltr",
696
+ "format": "",
697
+ "indent": 0,
698
+ "type": "code",
699
+ "version": 1,
700
+ "language": "python"
701
+ },
702
+ {
703
+ "children": [
704
+ {
705
+ "detail": 0,
706
+ "format": 0,
707
+ "mode": "normal",
708
+ "style": "",
709
+ "text": "JavaScript example:",
710
+ "type": "text",
711
+ "version": 1
712
+ }
713
+ ],
714
+ "direction": "ltr",
715
+ "format": "",
716
+ "indent": 0,
717
+ "type": "paragraph",
718
+ "version": 1
719
+ },
720
+ {
721
+ "children": [
722
+ {
723
+ "detail": 0,
724
+ "format": 0,
725
+ "mode": "normal",
726
+ "style": "",
727
+ "text": "const greet = (name) => {\n return `Hello, ${name}!`;\n};\n\nconsole.log(greet(\"World\"));",
728
+ "type": "text",
729
+ "version": 1
730
+ }
731
+ ],
732
+ "direction": "ltr",
733
+ "format": "",
734
+ "indent": 0,
735
+ "type": "code",
736
+ "version": 1,
737
+ "language": "javascript"
738
+ },
739
+ {
740
+ "type": "horizontalrule",
741
+ "version": 1
742
+ },
743
+ {
744
+ "children": [
745
+ {
746
+ "detail": 0,
747
+ "format": 1,
748
+ "mode": "normal",
749
+ "style": "",
750
+ "text": "5. Math Equations",
751
+ "type": "text",
752
+ "version": 1
753
+ }
754
+ ],
755
+ "direction": "ltr",
756
+ "format": "",
757
+ "indent": 0,
758
+ "type": "heading",
759
+ "version": 1,
760
+ "tag": "h2"
761
+ },
762
+ {
763
+ "children": [
764
+ {
765
+ "detail": 0,
766
+ "format": 0,
767
+ "mode": "normal",
768
+ "style": "",
769
+ "text": "Inline equation: ",
770
+ "type": "text",
771
+ "version": 1
772
+ },
773
+ {
774
+ "type": "equation",
775
+ "version": 1,
776
+ "equation": "E = mc^2",
777
+ "inline": true
778
+ },
779
+ {
780
+ "detail": 0,
781
+ "format": 0,
782
+ "mode": "normal",
783
+ "style": "",
784
+ "text": " is Einstein's famous equation.",
785
+ "type": "text",
786
+ "version": 1
787
+ }
788
+ ],
789
+ "direction": "ltr",
790
+ "format": "",
791
+ "indent": 0,
792
+ "type": "paragraph",
793
+ "version": 1
794
+ },
795
+ {
796
+ "children": [
797
+ {
798
+ "detail": 0,
799
+ "format": 0,
800
+ "mode": "normal",
801
+ "style": "",
802
+ "text": "Block equation (quadratic formula):",
803
+ "type": "text",
804
+ "version": 1
805
+ }
806
+ ],
807
+ "direction": "ltr",
808
+ "format": "",
809
+ "indent": 0,
810
+ "type": "paragraph",
811
+ "version": 1
812
+ },
813
+ {
814
+ "children": [
815
+ {
816
+ "type": "equation",
817
+ "version": 1,
818
+ "equation": "x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}",
819
+ "inline": false
820
+ }
821
+ ],
822
+ "direction": "ltr",
823
+ "format": "",
824
+ "indent": 0,
825
+ "type": "paragraph",
826
+ "version": 1
827
+ },
828
+ {
829
+ "type": "horizontalrule",
830
+ "version": 1
831
+ },
832
+ {
833
+ "children": [
834
+ {
835
+ "detail": 0,
836
+ "format": 1,
837
+ "mode": "normal",
838
+ "style": "",
839
+ "text": "6. Tables",
840
+ "type": "text",
841
+ "version": 1
842
+ }
843
+ ],
844
+ "direction": "ltr",
845
+ "format": "",
846
+ "indent": 0,
847
+ "type": "heading",
848
+ "version": 1,
849
+ "tag": "h2"
850
+ },
851
+ {
852
+ "children": [
853
+ {
854
+ "detail": 0,
855
+ "format": 0,
856
+ "mode": "normal",
857
+ "style": "",
858
+ "text": "Hover over table cells to add rows and columns:",
859
+ "type": "text",
860
+ "version": 1
861
+ }
862
+ ],
863
+ "direction": "ltr",
864
+ "format": "",
865
+ "indent": 0,
866
+ "type": "paragraph",
867
+ "version": 1
868
+ },
869
+ {
870
+ "children": [
871
+ {
872
+ "children": [
873
+ {
874
+ "children": [
875
+ {
876
+ "children": [
877
+ {
878
+ "children": [
879
+ {
880
+ "detail": 0,
881
+ "format": 1,
882
+ "mode": "normal",
883
+ "style": "",
884
+ "text": "Name",
885
+ "type": "text",
886
+ "version": 1
887
+ }
888
+ ],
889
+ "direction": "ltr",
890
+ "format": "",
891
+ "indent": 0,
892
+ "type": "paragraph",
893
+ "version": 1
894
+ }
895
+ ],
896
+ "backgroundColor": null,
897
+ "colSpan": 1,
898
+ "headerState": 1,
899
+ "rowSpan": 1,
900
+ "type": "tablecell",
901
+ "version": 1
902
+ },
903
+ {
904
+ "children": [
905
+ {
906
+ "children": [
907
+ {
908
+ "detail": 0,
909
+ "format": 1,
910
+ "mode": "normal",
911
+ "style": "",
912
+ "text": "Age",
913
+ "type": "text",
914
+ "version": 1
915
+ }
916
+ ],
917
+ "direction": "ltr",
918
+ "format": "",
919
+ "indent": 0,
920
+ "type": "paragraph",
921
+ "version": 1
922
+ }
923
+ ],
924
+ "backgroundColor": null,
925
+ "colSpan": 1,
926
+ "headerState": 1,
927
+ "rowSpan": 1,
928
+ "type": "tablecell",
929
+ "version": 1
930
+ },
931
+ {
932
+ "children": [
933
+ {
934
+ "children": [
935
+ {
936
+ "detail": 0,
937
+ "format": 1,
938
+ "mode": "normal",
939
+ "style": "",
940
+ "text": "City",
941
+ "type": "text",
942
+ "version": 1
943
+ }
944
+ ],
945
+ "direction": "ltr",
946
+ "format": "",
947
+ "indent": 0,
948
+ "type": "paragraph",
949
+ "version": 1
950
+ }
951
+ ],
952
+ "backgroundColor": null,
953
+ "colSpan": 1,
954
+ "headerState": 1,
955
+ "rowSpan": 1,
956
+ "type": "tablecell",
957
+ "version": 1
958
+ }
959
+ ],
960
+ "type": "tablerow",
961
+ "version": 1
962
+ },
963
+ {
964
+ "children": [
965
+ {
966
+ "children": [
967
+ {
968
+ "children": [
969
+ {
970
+ "detail": 0,
971
+ "format": 0,
972
+ "mode": "normal",
973
+ "style": "",
974
+ "text": "Alice",
975
+ "type": "text",
976
+ "version": 1
977
+ }
978
+ ],
979
+ "direction": "ltr",
980
+ "format": "",
981
+ "indent": 0,
982
+ "type": "paragraph",
983
+ "version": 1
984
+ }
985
+ ],
986
+ "backgroundColor": null,
987
+ "colSpan": 1,
988
+ "headerState": 0,
989
+ "rowSpan": 1,
990
+ "type": "tablecell",
991
+ "version": 1
992
+ },
993
+ {
994
+ "children": [
995
+ {
996
+ "children": [
997
+ {
998
+ "detail": 0,
999
+ "format": 0,
1000
+ "mode": "normal",
1001
+ "style": "",
1002
+ "text": "25",
1003
+ "type": "text",
1004
+ "version": 1
1005
+ }
1006
+ ],
1007
+ "direction": "ltr",
1008
+ "format": "",
1009
+ "indent": 0,
1010
+ "type": "paragraph",
1011
+ "version": 1
1012
+ }
1013
+ ],
1014
+ "backgroundColor": null,
1015
+ "colSpan": 1,
1016
+ "headerState": 0,
1017
+ "rowSpan": 1,
1018
+ "type": "tablecell",
1019
+ "version": 1
1020
+ },
1021
+ {
1022
+ "children": [
1023
+ {
1024
+ "children": [
1025
+ {
1026
+ "detail": 0,
1027
+ "format": 0,
1028
+ "mode": "normal",
1029
+ "style": "",
1030
+ "text": "Boston",
1031
+ "type": "text",
1032
+ "version": 1
1033
+ }
1034
+ ],
1035
+ "direction": "ltr",
1036
+ "format": "",
1037
+ "indent": 0,
1038
+ "type": "paragraph",
1039
+ "version": 1
1040
+ }
1041
+ ],
1042
+ "backgroundColor": null,
1043
+ "colSpan": 1,
1044
+ "headerState": 0,
1045
+ "rowSpan": 1,
1046
+ "type": "tablecell",
1047
+ "version": 1
1048
+ }
1049
+ ],
1050
+ "type": "tablerow",
1051
+ "version": 1
1052
+ },
1053
+ {
1054
+ "children": [
1055
+ {
1056
+ "children": [
1057
+ {
1058
+ "children": [
1059
+ {
1060
+ "detail": 0,
1061
+ "format": 0,
1062
+ "mode": "normal",
1063
+ "style": "",
1064
+ "text": "Bob",
1065
+ "type": "text",
1066
+ "version": 1
1067
+ }
1068
+ ],
1069
+ "direction": "ltr",
1070
+ "format": "",
1071
+ "indent": 0,
1072
+ "type": "paragraph",
1073
+ "version": 1
1074
+ }
1075
+ ],
1076
+ "backgroundColor": null,
1077
+ "colSpan": 1,
1078
+ "headerState": 0,
1079
+ "rowSpan": 1,
1080
+ "type": "tablecell",
1081
+ "version": 1
1082
+ },
1083
+ {
1084
+ "children": [
1085
+ {
1086
+ "children": [
1087
+ {
1088
+ "detail": 0,
1089
+ "format": 0,
1090
+ "mode": "normal",
1091
+ "style": "",
1092
+ "text": "30",
1093
+ "type": "text",
1094
+ "version": 1
1095
+ }
1096
+ ],
1097
+ "direction": "ltr",
1098
+ "format": "",
1099
+ "indent": 0,
1100
+ "type": "paragraph",
1101
+ "version": 1
1102
+ }
1103
+ ],
1104
+ "backgroundColor": null,
1105
+ "colSpan": 1,
1106
+ "headerState": 0,
1107
+ "rowSpan": 1,
1108
+ "type": "tablecell",
1109
+ "version": 1
1110
+ },
1111
+ {
1112
+ "children": [
1113
+ {
1114
+ "children": [
1115
+ {
1116
+ "detail": 0,
1117
+ "format": 0,
1118
+ "mode": "normal",
1119
+ "style": "",
1120
+ "text": "New York",
1121
+ "type": "text",
1122
+ "version": 1
1123
+ }
1124
+ ],
1125
+ "direction": "ltr",
1126
+ "format": "",
1127
+ "indent": 0,
1128
+ "type": "paragraph",
1129
+ "version": 1
1130
+ }
1131
+ ],
1132
+ "backgroundColor": null,
1133
+ "colSpan": 1,
1134
+ "headerState": 0,
1135
+ "rowSpan": 1,
1136
+ "type": "tablecell",
1137
+ "version": 1
1138
+ }
1139
+ ],
1140
+ "type": "tablerow",
1141
+ "version": 1
1142
+ },
1143
+ {
1144
+ "children": [
1145
+ {
1146
+ "children": [
1147
+ {
1148
+ "children": [
1149
+ {
1150
+ "detail": 0,
1151
+ "format": 0,
1152
+ "mode": "normal",
1153
+ "style": "",
1154
+ "text": "Carol",
1155
+ "type": "text",
1156
+ "version": 1
1157
+ }
1158
+ ],
1159
+ "direction": "ltr",
1160
+ "format": "",
1161
+ "indent": 0,
1162
+ "type": "paragraph",
1163
+ "version": 1
1164
+ }
1165
+ ],
1166
+ "backgroundColor": null,
1167
+ "colSpan": 1,
1168
+ "headerState": 0,
1169
+ "rowSpan": 1,
1170
+ "type": "tablecell",
1171
+ "version": 1
1172
+ },
1173
+ {
1174
+ "children": [
1175
+ {
1176
+ "children": [
1177
+ {
1178
+ "detail": 0,
1179
+ "format": 0,
1180
+ "mode": "normal",
1181
+ "style": "",
1182
+ "text": "28",
1183
+ "type": "text",
1184
+ "version": 1
1185
+ }
1186
+ ],
1187
+ "direction": "ltr",
1188
+ "format": "",
1189
+ "indent": 0,
1190
+ "type": "paragraph",
1191
+ "version": 1
1192
+ }
1193
+ ],
1194
+ "backgroundColor": null,
1195
+ "colSpan": 1,
1196
+ "headerState": 0,
1197
+ "rowSpan": 1,
1198
+ "type": "tablecell",
1199
+ "version": 1
1200
+ },
1201
+ {
1202
+ "children": [
1203
+ {
1204
+ "children": [
1205
+ {
1206
+ "detail": 0,
1207
+ "format": 0,
1208
+ "mode": "normal",
1209
+ "style": "",
1210
+ "text": "Seattle",
1211
+ "type": "text",
1212
+ "version": 1
1213
+ }
1214
+ ],
1215
+ "direction": "ltr",
1216
+ "format": "",
1217
+ "indent": 0,
1218
+ "type": "paragraph",
1219
+ "version": 1
1220
+ }
1221
+ ],
1222
+ "backgroundColor": null,
1223
+ "colSpan": 1,
1224
+ "headerState": 0,
1225
+ "rowSpan": 1,
1226
+ "type": "tablecell",
1227
+ "version": 1
1228
+ }
1229
+ ],
1230
+ "type": "tablerow",
1231
+ "version": 1
1232
+ }
1233
+ ],
1234
+ "type": "table",
1235
+ "version": 1
1236
+ }
1237
+ ],
1238
+ "direction": "ltr",
1239
+ "format": "",
1240
+ "indent": 0,
1241
+ "type": "paragraph",
1242
+ "version": 1
1243
+ },
1244
+ {
1245
+ "type": "horizontalrule",
1246
+ "version": 1
1247
+ },
1248
+ {
1249
+ "children": [
1250
+ {
1251
+ "detail": 0,
1252
+ "format": 1,
1253
+ "mode": "normal",
1254
+ "style": "",
1255
+ "text": "7. Collapsible Sections",
1256
+ "type": "text",
1257
+ "version": 1
1258
+ }
1259
+ ],
1260
+ "direction": "ltr",
1261
+ "format": "",
1262
+ "indent": 0,
1263
+ "type": "heading",
1264
+ "version": 1,
1265
+ "tag": "h2"
1266
+ },
1267
+ {
1268
+ "children": [
1269
+ {
1270
+ "children": [
1271
+ {
1272
+ "detail": 0,
1273
+ "format": 1,
1274
+ "mode": "normal",
1275
+ "style": "",
1276
+ "text": "▶ Click to expand: Advanced Features",
1277
+ "type": "text",
1278
+ "version": 1
1279
+ }
1280
+ ],
1281
+ "direction": "ltr",
1282
+ "format": "",
1283
+ "indent": 0,
1284
+ "type": "collapsible-title",
1285
+ "version": 1
1286
+ },
1287
+ {
1288
+ "children": [
1289
+ {
1290
+ "children": [
1291
+ {
1292
+ "detail": 0,
1293
+ "format": 0,
1294
+ "mode": "normal",
1295
+ "style": "",
1296
+ "text": "Collapsible sections can contain any content including:",
1297
+ "type": "text",
1298
+ "version": 1
1299
+ }
1300
+ ],
1301
+ "direction": "ltr",
1302
+ "format": "",
1303
+ "indent": 0,
1304
+ "type": "paragraph",
1305
+ "version": 1
1306
+ },
1307
+ {
1308
+ "children": [
1309
+ {
1310
+ "children": [
1311
+ {
1312
+ "detail": 0,
1313
+ "format": 0,
1314
+ "mode": "normal",
1315
+ "style": "",
1316
+ "text": "Tables",
1317
+ "type": "text",
1318
+ "version": 1
1319
+ }
1320
+ ],
1321
+ "direction": "ltr",
1322
+ "format": "",
1323
+ "indent": 0,
1324
+ "type": "listitem",
1325
+ "version": 1,
1326
+ "value": 1
1327
+ },
1328
+ {
1329
+ "children": [
1330
+ {
1331
+ "detail": 0,
1332
+ "format": 0,
1333
+ "mode": "normal",
1334
+ "style": "",
1335
+ "text": "Code blocks",
1336
+ "type": "text",
1337
+ "version": 1
1338
+ }
1339
+ ],
1340
+ "direction": "ltr",
1341
+ "format": "",
1342
+ "indent": 0,
1343
+ "type": "listitem",
1344
+ "version": 1,
1345
+ "value": 2
1346
+ },
1347
+ {
1348
+ "children": [
1349
+ {
1350
+ "detail": 0,
1351
+ "format": 0,
1352
+ "mode": "normal",
1353
+ "style": "",
1354
+ "text": "Images and diagrams",
1355
+ "type": "text",
1356
+ "version": 1
1357
+ }
1358
+ ],
1359
+ "direction": "ltr",
1360
+ "format": "",
1361
+ "indent": 0,
1362
+ "type": "listitem",
1363
+ "version": 1,
1364
+ "value": 3
1365
+ },
1366
+ {
1367
+ "children": [
1368
+ {
1369
+ "detail": 0,
1370
+ "format": 0,
1371
+ "mode": "normal",
1372
+ "style": "",
1373
+ "text": "Jupyter code cells",
1374
+ "type": "text",
1375
+ "version": 1
1376
+ }
1377
+ ],
1378
+ "direction": "ltr",
1379
+ "format": "",
1380
+ "indent": 0,
1381
+ "type": "listitem",
1382
+ "version": 1,
1383
+ "value": 4
1384
+ }
1385
+ ],
1386
+ "direction": "ltr",
1387
+ "format": "",
1388
+ "indent": 0,
1389
+ "type": "list",
1390
+ "version": 1,
1391
+ "listType": "bullet",
1392
+ "start": 1,
1393
+ "tag": "ul"
1394
+ },
1395
+ {
1396
+ "children": [
1397
+ {
1398
+ "detail": 0,
1399
+ "format": 0,
1400
+ "mode": "normal",
1401
+ "style": "",
1402
+ "text": "Example Python code:",
1403
+ "type": "text",
1404
+ "version": 1
1405
+ }
1406
+ ],
1407
+ "direction": "ltr",
1408
+ "format": "",
1409
+ "indent": 0,
1410
+ "type": "paragraph",
1411
+ "version": 1
1412
+ },
1413
+ {
1414
+ "children": [
1415
+ {
1416
+ "detail": 0,
1417
+ "format": 0,
1418
+ "mode": "normal",
1419
+ "style": "",
1420
+ "text": "import",
1421
+ "type": "jupyter-input-highlight",
1422
+ "version": 1,
1423
+ "highlightType": "keyword"
1424
+ },
1425
+ {
1426
+ "detail": 0,
1427
+ "format": 0,
1428
+ "mode": "normal",
1429
+ "style": "",
1430
+ "text": " ",
1431
+ "type": "jupyter-input-highlight",
1432
+ "version": 1,
1433
+ "highlightType": "whitespace"
1434
+ },
1435
+ {
1436
+ "detail": 0,
1437
+ "format": 0,
1438
+ "mode": "normal",
1439
+ "style": "",
1440
+ "text": "time",
1441
+ "type": "jupyter-input-highlight",
1442
+ "version": 1,
1443
+ "highlightType": "name"
1444
+ },
1445
+ {
1446
+ "type": "linebreak",
1447
+ "version": 1
1448
+ },
1449
+ {
1450
+ "type": "linebreak",
1451
+ "version": 1
1452
+ },
1453
+ {
1454
+ "detail": 0,
1455
+ "format": 0,
1456
+ "mode": "normal",
1457
+ "style": "",
1458
+ "text": "print",
1459
+ "type": "jupyter-input-highlight",
1460
+ "version": 1,
1461
+ "highlightType": "keyword"
1462
+ },
1463
+ {
1464
+ "detail": 0,
1465
+ "format": 0,
1466
+ "mode": "normal",
1467
+ "style": "",
1468
+ "text": "(",
1469
+ "type": "jupyter-input-highlight",
1470
+ "version": 1,
1471
+ "highlightType": "punctuation"
1472
+ },
1473
+ {
1474
+ "detail": 0,
1475
+ "format": 0,
1476
+ "mode": "normal",
1477
+ "style": "",
1478
+ "text": "'Hidden content!'",
1479
+ "type": "jupyter-input-highlight",
1480
+ "version": 1,
1481
+ "highlightType": "string"
1482
+ },
1483
+ {
1484
+ "detail": 0,
1485
+ "format": 0,
1486
+ "mode": "normal",
1487
+ "style": "",
1488
+ "text": ")",
1489
+ "type": "jupyter-input-highlight",
1490
+ "version": 1,
1491
+ "highlightType": "punctuation"
1492
+ },
1493
+ {
1494
+ "type": "linebreak",
1495
+ "version": 1
1496
+ },
1497
+ {
1498
+ "detail": 0,
1499
+ "format": 0,
1500
+ "mode": "normal",
1501
+ "style": "",
1502
+ "text": "time",
1503
+ "type": "jupyter-input-highlight",
1504
+ "version": 1,
1505
+ "highlightType": "name"
1506
+ },
1507
+ {
1508
+ "detail": 0,
1509
+ "format": 0,
1510
+ "mode": "normal",
1511
+ "style": "",
1512
+ "text": ".",
1513
+ "type": "jupyter-input-highlight",
1514
+ "version": 1,
1515
+ "highlightType": "punctuation"
1516
+ },
1517
+ {
1518
+ "detail": 0,
1519
+ "format": 0,
1520
+ "mode": "normal",
1521
+ "style": "",
1522
+ "text": "sleep",
1523
+ "type": "jupyter-input-highlight",
1524
+ "version": 1,
1525
+ "highlightType": "name"
1526
+ },
1527
+ {
1528
+ "detail": 0,
1529
+ "format": 0,
1530
+ "mode": "normal",
1531
+ "style": "",
1532
+ "text": "(",
1533
+ "type": "jupyter-input-highlight",
1534
+ "version": 1,
1535
+ "highlightType": "punctuation"
1536
+ },
1537
+ {
1538
+ "detail": 0,
1539
+ "format": 0,
1540
+ "mode": "normal",
1541
+ "style": "",
1542
+ "text": "2",
1543
+ "type": "jupyter-input-highlight",
1544
+ "version": 1,
1545
+ "highlightType": "number"
1546
+ },
1547
+ {
1548
+ "detail": 0,
1549
+ "format": 0,
1550
+ "mode": "normal",
1551
+ "style": "",
1552
+ "text": ")",
1553
+ "type": "jupyter-input-highlight",
1554
+ "version": 1,
1555
+ "highlightType": "punctuation"
1556
+ },
1557
+ {
1558
+ "type": "linebreak",
1559
+ "version": 1
1560
+ },
1561
+ {
1562
+ "detail": 0,
1563
+ "format": 0,
1564
+ "mode": "normal",
1565
+ "style": "",
1566
+ "text": "print",
1567
+ "type": "jupyter-input-highlight",
1568
+ "version": 1,
1569
+ "highlightType": "keyword"
1570
+ },
1571
+ {
1572
+ "detail": 0,
1573
+ "format": 0,
1574
+ "mode": "normal",
1575
+ "style": "",
1576
+ "text": "(",
1577
+ "type": "jupyter-input-highlight",
1578
+ "version": 1,
1579
+ "highlightType": "punctuation"
1580
+ },
1581
+ {
1582
+ "detail": 0,
1583
+ "format": 0,
1584
+ "mode": "normal",
1585
+ "style": "",
1586
+ "text": "'After sleep!'",
1587
+ "type": "jupyter-input-highlight",
1588
+ "version": 1,
1589
+ "highlightType": "string"
1590
+ },
1591
+ {
1592
+ "detail": 0,
1593
+ "format": 0,
1594
+ "mode": "normal",
1595
+ "style": "",
1596
+ "text": ")",
1597
+ "type": "jupyter-input-highlight",
1598
+ "version": 1,
1599
+ "highlightType": "punctuation"
1600
+ }
1601
+ ],
1602
+ "direction": "ltr",
1603
+ "format": "",
1604
+ "indent": 0,
1605
+ "type": "jupyter-input",
1606
+ "version": 1,
1607
+ "language": "python",
1608
+ "jupyterInputNodeUuid": "collapsible-demo-uuid"
1609
+ },
1610
+ {
1611
+ "format": "",
1612
+ "type": "jupyter-output",
1613
+ "version": 1,
1614
+ "source": "import time\n\nprint('Hidden content!')\ntime.sleep(2)\nprint('After sleep!')",
1615
+ "outputs": [
1616
+ {
1617
+ "name": "stdout",
1618
+ "text": "Hidden content!\nAfter sleep!\n",
1619
+ "output_type": "stream"
1620
+ }
1621
+ ],
1622
+ "jupyterInputNodeUuid": "collapsible-demo-uuid",
1623
+ "jupyterOutputNodeUuid": "collapsible-demo-output-uuid"
1624
+ }
1625
+ ],
1626
+ "direction": "ltr",
1627
+ "format": "",
1628
+ "indent": 0,
1629
+ "type": "collapsible-content",
1630
+ "version": 1
1631
+ }
1632
+ ],
1633
+ "direction": "ltr",
1634
+ "format": "",
1635
+ "indent": 0,
1636
+ "type": "collapsible-container",
1637
+ "version": 1,
1638
+ "open": true
1639
+ },
1640
+ {
1641
+ "type": "horizontalrule",
1642
+ "version": 1
1643
+ },
1644
+ {
1645
+ "children": [
1646
+ {
1647
+ "detail": 0,
1648
+ "format": 1,
1649
+ "mode": "normal",
1650
+ "style": "",
1651
+ "text": "8. Excalidraw Diagrams",
1652
+ "type": "text",
1653
+ "version": 1
1654
+ }
1655
+ ],
1656
+ "direction": "ltr",
1657
+ "format": "",
1658
+ "indent": 0,
1659
+ "type": "heading",
1660
+ "version": 1,
1661
+ "tag": "h2"
1662
+ },
1663
+ {
1664
+ "children": [
1665
+ {
1666
+ "detail": 0,
1667
+ "format": 0,
1668
+ "mode": "normal",
1669
+ "style": "",
1670
+ "text": "Double-click to edit the diagram:",
1671
+ "type": "text",
1672
+ "version": 1
1673
+ }
1674
+ ],
1675
+ "direction": "ltr",
1676
+ "format": "",
1677
+ "indent": 0,
1678
+ "type": "paragraph",
1679
+ "version": 1
1680
+ },
1681
+ {
1682
+ "children": [
1683
+ {
1684
+ "type": "excalidraw",
1685
+ "version": 1,
1686
+ "data": "{\"elements\":[{\"type\":\"rectangle\",\"version\":1,\"versionNonce\":1,\"isDeleted\":false,\"id\":\"rect1\",\"fillStyle\":\"hachure\",\"strokeWidth\":1,\"strokeStyle\":\"solid\",\"roughness\":1,\"opacity\":100,\"angle\":0,\"x\":100,\"y\":100,\"strokeColor\":\"#1e1e1e\",\"backgroundColor\":\"#a5d8ff\",\"width\":200,\"height\":100,\"seed\":1,\"groupIds\":[],\"frameId\":null,\"roundness\":{\"type\":3},\"boundElements\":[{\"type\":\"text\",\"id\":\"text1\"}],\"updated\":1,\"link\":null,\"locked\":false},{\"type\":\"text\",\"version\":1,\"versionNonce\":1,\"isDeleted\":false,\"id\":\"text1\",\"fillStyle\":\"hachure\",\"strokeWidth\":1,\"strokeStyle\":\"solid\",\"roughness\":1,\"opacity\":100,\"angle\":0,\"x\":150,\"y\":130,\"strokeColor\":\"#1e1e1e\",\"backgroundColor\":\"transparent\",\"width\":100,\"height\":40,\"seed\":1,\"groupIds\":[],\"frameId\":null,\"roundness\":null,\"boundElements\":[],\"updated\":1,\"link\":null,\"locked\":false,\"fontSize\":20,\"fontFamily\":1,\"text\":\"Lexical\",\"textAlign\":\"center\",\"verticalAlign\":\"middle\",\"containerId\":\"rect1\",\"originalText\":\"Lexical\",\"lineHeight\":1.25,\"baseline\":34},{\"type\":\"arrow\",\"version\":1,\"versionNonce\":1,\"isDeleted\":false,\"id\":\"arrow1\",\"fillStyle\":\"hachure\",\"strokeWidth\":1,\"strokeStyle\":\"solid\",\"roughness\":1,\"opacity\":100,\"angle\":0,\"x\":200,\"y\":200,\"strokeColor\":\"#1e1e1e\",\"backgroundColor\":\"transparent\",\"width\":0,\"height\":100,\"seed\":1,\"groupIds\":[],\"frameId\":null,\"roundness\":{\"type\":2},\"boundElements\":[],\"updated\":1,\"link\":null,\"locked\":false,\"startBinding\":null,\"endBinding\":null,\"lastCommittedPoint\":null,\"startArrowhead\":null,\"endArrowhead\":\"arrow\",\"points\":[[0,0],[0,100]]},{\"type\":\"ellipse\",\"version\":1,\"versionNonce\":1,\"isDeleted\":false,\"id\":\"ellipse1\",\"fillStyle\":\"hachure\",\"strokeWidth\":1,\"strokeStyle\":\"solid\",\"roughness\":1,\"opacity\":100,\"angle\":0,\"x\":120,\"y\":320,\"strokeColor\":\"#1e1e1e\",\"backgroundColor\":\"#b2f2bb\",\"width\":160,\"height\":80,\"seed\":1,\"groupIds\":[],\"frameId\":null,\"roundness\":{\"type\":2},\"boundElements\":[{\"type\":\"text\",\"id\":\"text2\"}],\"updated\":1,\"link\":null,\"locked\":false},{\"type\":\"text\",\"version\":1,\"versionNonce\":1,\"isDeleted\":false,\"id\":\"text2\",\"fillStyle\":\"hachure\",\"strokeWidth\":1,\"strokeStyle\":\"solid\",\"roughness\":1,\"opacity\":100,\"angle\":0,\"x\":160,\"y\":340,\"strokeColor\":\"#1e1e1e\",\"backgroundColor\":\"transparent\",\"width\":80,\"height\":40,\"seed\":1,\"groupIds\":[],\"frameId\":null,\"roundness\":null,\"boundElements\":[],\"updated\":1,\"link\":null,\"locked\":false,\"fontSize\":20,\"fontFamily\":1,\"text\":\"Features\",\"textAlign\":\"center\",\"verticalAlign\":\"middle\",\"containerId\":\"ellipse1\",\"originalText\":\"Features\",\"lineHeight\":1.25,\"baseline\":34}],\"appState\":{\"gridSize\":null,\"viewBackgroundColor\":\"#ffffff\"},\"files\":{}}",
1687
+ "width": "inherit",
1688
+ "height": "inherit"
1689
+ }
1690
+ ],
1691
+ "direction": "ltr",
1692
+ "format": "",
1693
+ "indent": 0,
1694
+ "type": "paragraph",
1695
+ "version": 1
1696
+ },
1697
+ {
1698
+ "type": "horizontalrule",
1699
+ "version": 1
1700
+ },
1701
+ {
1702
+ "children": [
1703
+ {
1704
+ "detail": 0,
1705
+ "format": 1,
1706
+ "mode": "normal",
1707
+ "style": "",
1708
+ "text": "9. Jupyter Code Execution",
1709
+ "type": "text",
1710
+ "version": 1
1711
+ }
1712
+ ],
1713
+ "direction": "ltr",
1714
+ "format": "",
1715
+ "indent": 0,
1716
+ "type": "heading",
1717
+ "version": 1,
1718
+ "tag": "h2"
1719
+ },
1720
+ {
1721
+ "children": [
1722
+ {
1723
+ "detail": 0,
1724
+ "format": 0,
1725
+ "mode": "normal",
1726
+ "style": "",
1727
+ "text": "Execute Python code directly in the editor:",
1728
+ "type": "text",
1729
+ "version": 1
1730
+ }
1731
+ ],
1732
+ "direction": "ltr",
1733
+ "format": "",
1734
+ "indent": 0,
1735
+ "type": "paragraph",
1736
+ "version": 1
1737
+ },
1738
+ {
1739
+ "children": [
1740
+ {
1741
+ "detail": 0,
1742
+ "format": 0,
1743
+ "mode": "normal",
1744
+ "style": "",
1745
+ "text": "import",
1746
+ "type": "jupyter-input-highlight",
1747
+ "version": 1,
1748
+ "highlightType": "keyword"
1749
+ },
1750
+ {
1751
+ "detail": 0,
1752
+ "format": 0,
1753
+ "mode": "normal",
1754
+ "style": "",
1755
+ "text": " ",
1756
+ "type": "jupyter-input-highlight",
1757
+ "version": 1,
1758
+ "highlightType": "plain"
1759
+ },
1760
+ {
1761
+ "detail": 0,
1762
+ "format": 0,
1763
+ "mode": "normal",
1764
+ "style": "",
1765
+ "text": "matplotlib.pyplot",
1766
+ "type": "jupyter-input-highlight",
1767
+ "version": 1,
1768
+ "highlightType": "plain"
1769
+ },
1770
+ {
1771
+ "detail": 0,
1772
+ "format": 0,
1773
+ "mode": "normal",
1774
+ "style": "",
1775
+ "text": " ",
1776
+ "type": "jupyter-input-highlight",
1777
+ "version": 1,
1778
+ "highlightType": "plain"
1779
+ },
1780
+ {
1781
+ "detail": 0,
1782
+ "format": 0,
1783
+ "mode": "normal",
1784
+ "style": "",
1785
+ "text": "as",
1786
+ "type": "jupyter-input-highlight",
1787
+ "version": 1,
1788
+ "highlightType": "keyword"
1789
+ },
1790
+ {
1791
+ "detail": 0,
1792
+ "format": 0,
1793
+ "mode": "normal",
1794
+ "style": "",
1795
+ "text": " ",
1796
+ "type": "jupyter-input-highlight",
1797
+ "version": 1,
1798
+ "highlightType": "plain"
1799
+ },
1800
+ {
1801
+ "detail": 0,
1802
+ "format": 0,
1803
+ "mode": "normal",
1804
+ "style": "",
1805
+ "text": "plt\n",
1806
+ "type": "jupyter-input-highlight",
1807
+ "version": 1,
1808
+ "highlightType": "plain"
1809
+ },
1810
+ {
1811
+ "detail": 0,
1812
+ "format": 0,
1813
+ "mode": "normal",
1814
+ "style": "",
1815
+ "text": "plt",
1816
+ "type": "jupyter-input-highlight",
1817
+ "version": 1,
1818
+ "highlightType": "plain"
1819
+ },
1820
+ {
1821
+ "detail": 0,
1822
+ "format": 0,
1823
+ "mode": "normal",
1824
+ "style": "",
1825
+ "text": ".",
1826
+ "type": "jupyter-input-highlight",
1827
+ "version": 1,
1828
+ "highlightType": "punctuation"
1829
+ },
1830
+ {
1831
+ "detail": 0,
1832
+ "format": 0,
1833
+ "mode": "normal",
1834
+ "style": "",
1835
+ "text": "plot",
1836
+ "type": "jupyter-input-highlight",
1837
+ "version": 1,
1838
+ "highlightType": "plain"
1839
+ },
1840
+ {
1841
+ "detail": 0,
1842
+ "format": 0,
1843
+ "mode": "normal",
1844
+ "style": "",
1845
+ "text": "(",
1846
+ "type": "jupyter-input-highlight",
1847
+ "version": 1,
1848
+ "highlightType": "punctuation"
1849
+ },
1850
+ {
1851
+ "detail": 0,
1852
+ "format": 0,
1853
+ "mode": "normal",
1854
+ "style": "",
1855
+ "text": "[",
1856
+ "type": "jupyter-input-highlight",
1857
+ "version": 1,
1858
+ "highlightType": "punctuation"
1859
+ },
1860
+ {
1861
+ "detail": 0,
1862
+ "format": 0,
1863
+ "mode": "normal",
1864
+ "style": "",
1865
+ "text": "1",
1866
+ "type": "jupyter-input-highlight",
1867
+ "version": 1,
1868
+ "highlightType": "number"
1869
+ },
1870
+ {
1871
+ "detail": 0,
1872
+ "format": 0,
1873
+ "mode": "normal",
1874
+ "style": "",
1875
+ "text": ",",
1876
+ "type": "jupyter-input-highlight",
1877
+ "version": 1,
1878
+ "highlightType": "punctuation"
1879
+ },
1880
+ {
1881
+ "detail": 0,
1882
+ "format": 0,
1883
+ "mode": "normal",
1884
+ "style": "",
1885
+ "text": " ",
1886
+ "type": "jupyter-input-highlight",
1887
+ "version": 1,
1888
+ "highlightType": "plain"
1889
+ },
1890
+ {
1891
+ "detail": 0,
1892
+ "format": 0,
1893
+ "mode": "normal",
1894
+ "style": "",
1895
+ "text": "2",
1896
+ "type": "jupyter-input-highlight",
1897
+ "version": 1,
1898
+ "highlightType": "number"
1899
+ },
1900
+ {
1901
+ "detail": 0,
1902
+ "format": 0,
1903
+ "mode": "normal",
1904
+ "style": "",
1905
+ "text": ",",
1906
+ "type": "jupyter-input-highlight",
1907
+ "version": 1,
1908
+ "highlightType": "punctuation"
1909
+ },
1910
+ {
1911
+ "detail": 0,
1912
+ "format": 0,
1913
+ "mode": "normal",
1914
+ "style": "",
1915
+ "text": " ",
1916
+ "type": "jupyter-input-highlight",
1917
+ "version": 1,
1918
+ "highlightType": "plain"
1919
+ },
1920
+ {
1921
+ "detail": 0,
1922
+ "format": 0,
1923
+ "mode": "normal",
1924
+ "style": "",
1925
+ "text": "3",
1926
+ "type": "jupyter-input-highlight",
1927
+ "version": 1,
1928
+ "highlightType": "number"
1929
+ },
1930
+ {
1931
+ "detail": 0,
1932
+ "format": 0,
1933
+ "mode": "normal",
1934
+ "style": "",
1935
+ "text": ",",
1936
+ "type": "jupyter-input-highlight",
1937
+ "version": 1,
1938
+ "highlightType": "punctuation"
1939
+ },
1940
+ {
1941
+ "detail": 0,
1942
+ "format": 0,
1943
+ "mode": "normal",
1944
+ "style": "",
1945
+ "text": " ",
1946
+ "type": "jupyter-input-highlight",
1947
+ "version": 1,
1948
+ "highlightType": "plain"
1949
+ },
1950
+ {
1951
+ "detail": 0,
1952
+ "format": 0,
1953
+ "mode": "normal",
1954
+ "style": "",
1955
+ "text": "4",
1956
+ "type": "jupyter-input-highlight",
1957
+ "version": 1,
1958
+ "highlightType": "number"
1959
+ },
1960
+ {
1961
+ "detail": 0,
1962
+ "format": 0,
1963
+ "mode": "normal",
1964
+ "style": "",
1965
+ "text": ",",
1966
+ "type": "jupyter-input-highlight",
1967
+ "version": 1,
1968
+ "highlightType": "punctuation"
1969
+ },
1970
+ {
1971
+ "detail": 0,
1972
+ "format": 0,
1973
+ "mode": "normal",
1974
+ "style": "",
1975
+ "text": " ",
1976
+ "type": "jupyter-input-highlight",
1977
+ "version": 1,
1978
+ "highlightType": "plain"
1979
+ },
1980
+ {
1981
+ "detail": 0,
1982
+ "format": 0,
1983
+ "mode": "normal",
1984
+ "style": "",
1985
+ "text": "5",
1986
+ "type": "jupyter-input-highlight",
1987
+ "version": 1,
1988
+ "highlightType": "number"
1989
+ },
1990
+ {
1991
+ "detail": 0,
1992
+ "format": 0,
1993
+ "mode": "normal",
1994
+ "style": "",
1995
+ "text": "]",
1996
+ "type": "jupyter-input-highlight",
1997
+ "version": 1,
1998
+ "highlightType": "punctuation"
1999
+ },
2000
+ {
2001
+ "detail": 0,
2002
+ "format": 0,
2003
+ "mode": "normal",
2004
+ "style": "",
2005
+ "text": ")\n",
2006
+ "type": "jupyter-input-highlight",
2007
+ "version": 1,
2008
+ "highlightType": "punctuation"
2009
+ },
2010
+ {
2011
+ "detail": 0,
2012
+ "format": 0,
2013
+ "mode": "normal",
2014
+ "style": "",
2015
+ "text": "plt",
2016
+ "type": "jupyter-input-highlight",
2017
+ "version": 1,
2018
+ "highlightType": "plain"
2019
+ },
2020
+ {
2021
+ "detail": 0,
2022
+ "format": 0,
2023
+ "mode": "normal",
2024
+ "style": "",
2025
+ "text": ".",
2026
+ "type": "jupyter-input-highlight",
2027
+ "version": 1,
2028
+ "highlightType": "punctuation"
2029
+ },
2030
+ {
2031
+ "detail": 0,
2032
+ "format": 0,
2033
+ "mode": "normal",
2034
+ "style": "",
2035
+ "text": "title",
2036
+ "type": "jupyter-input-highlight",
2037
+ "version": 1,
2038
+ "highlightType": "plain"
2039
+ },
2040
+ {
2041
+ "detail": 0,
2042
+ "format": 0,
2043
+ "mode": "normal",
2044
+ "style": "",
2045
+ "text": "(",
2046
+ "type": "jupyter-input-highlight",
2047
+ "version": 1,
2048
+ "highlightType": "punctuation"
2049
+ },
2050
+ {
2051
+ "detail": 0,
2052
+ "format": 0,
2053
+ "mode": "normal",
2054
+ "style": "",
2055
+ "text": "'Simple Plot'",
2056
+ "type": "jupyter-input-highlight",
2057
+ "version": 1,
2058
+ "highlightType": "string"
2059
+ },
2060
+ {
2061
+ "detail": 0,
2062
+ "format": 0,
2063
+ "mode": "normal",
2064
+ "style": "",
2065
+ "text": ")",
2066
+ "type": "jupyter-input-highlight",
2067
+ "version": 1,
2068
+ "highlightType": "punctuation"
2069
+ }
2070
+ ],
2071
+ "direction": "ltr",
2072
+ "format": "",
2073
+ "indent": 0,
2074
+ "type": "jupyter-input",
2075
+ "version": 1,
2076
+ "language": "python",
2077
+ "jupyterInputNodeUuid": "plot-demo-uuid"
2078
+ },
2079
+ {
2080
+ "format": "",
2081
+ "type": "jupyter-output",
2082
+ "version": 1,
2083
+ "source": "import matplotlib.pyplot as plt\nplt.plot([1, 2, 3, 4, 5])\nplt.title('Simple Plot')",
2084
+ "outputs": [
2085
+ {
2086
+ "data": {
2087
+ "text/plain": "Text(0.5, 1.0, 'Simple Plot')"
2088
+ },
2089
+ "execution_count": 1,
2090
+ "metadata": {},
2091
+ "output_type": "execute_result"
2092
+ }
2093
+ ],
2094
+ "jupyterInputNodeUuid": "plot-demo-uuid",
2095
+ "jupyterOutputNodeUuid": "plot-demo-output-uuid"
2096
+ },
2097
+ {
2098
+ "type": "horizontalrule",
2099
+ "version": 1
2100
+ },
2101
+ {
2102
+ "children": [
2103
+ {
2104
+ "detail": 0,
2105
+ "format": 1,
2106
+ "mode": "normal",
2107
+ "style": "",
2108
+ "text": "10. YouTube Videos",
2109
+ "type": "text",
2110
+ "version": 1
2111
+ }
2112
+ ],
2113
+ "direction": "ltr",
2114
+ "format": "",
2115
+ "indent": 0,
2116
+ "type": "heading",
2117
+ "version": 1,
2118
+ "tag": "h2"
2119
+ },
2120
+ {
2121
+ "children": [
2122
+ {
2123
+ "detail": 0,
2124
+ "format": 0,
2125
+ "mode": "normal",
2126
+ "style": "",
2127
+ "text": "Embed YouTube videos directly:",
2128
+ "type": "text",
2129
+ "version": 1
2130
+ }
2131
+ ],
2132
+ "direction": "ltr",
2133
+ "format": "",
2134
+ "indent": 0,
2135
+ "type": "paragraph",
2136
+ "version": 1
2137
+ },
2138
+ {
2139
+ "format": "",
2140
+ "type": "youtube",
2141
+ "version": 1,
2142
+ "videoID": "lO2p9LQB7ds"
2143
+ },
2144
+ {
2145
+ "type": "horizontalrule",
2146
+ "version": 1
2147
+ },
2148
+ {
2149
+ "children": [
2150
+ {
2151
+ "detail": 0,
2152
+ "format": 1,
2153
+ "mode": "normal",
2154
+ "style": "",
2155
+ "text": "Try It Yourself!",
2156
+ "type": "text",
2157
+ "version": 1
2158
+ }
2159
+ ],
2160
+ "direction": "ltr",
2161
+ "format": "",
2162
+ "indent": 0,
2163
+ "type": "heading",
2164
+ "version": 1,
2165
+ "tag": "h2"
2166
+ },
2167
+ {
2168
+ "children": [
2169
+ {
2170
+ "detail": 0,
2171
+ "format": 0,
2172
+ "mode": "normal",
2173
+ "style": "",
2174
+ "text": "Type ",
2175
+ "type": "text",
2176
+ "version": 1
2177
+ },
2178
+ {
2179
+ "detail": 0,
2180
+ "format": 16,
2181
+ "mode": "normal",
2182
+ "style": "",
2183
+ "text": "/",
2184
+ "type": "text",
2185
+ "version": 1
2186
+ },
2187
+ {
2188
+ "detail": 0,
2189
+ "format": 0,
2190
+ "mode": "normal",
2191
+ "style": "",
2192
+ "text": " to open the insert menu and try these features yourself. Use the toolbar at the top for quick access to formatting options. Drag blocks by clicking the handle on the left side of any block.",
2193
+ "type": "text",
2194
+ "version": 1
2195
+ }
2196
+ ],
2197
+ "direction": "ltr",
2198
+ "format": "",
2199
+ "indent": 0,
2200
+ "type": "paragraph",
2201
+ "version": 1
2202
+ }
2203
+ ],
2204
+ "direction": "ltr",
2205
+ "format": "",
2206
+ "indent": 0,
2207
+ "type": "root",
2208
+ "version": 1
2209
+ }
2210
+ }