-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.ojsnb
More file actions
132 lines (132 loc) · 4.61 KB
/
test.ojsnb
File metadata and controls
132 lines (132 loc) · 4.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"id": "2a0f571c-339f-49cc-9878-51aeface5b91",
"files": [],
"nodes": [
{
"id": 0,
"name": "",
"value": "# Quick Start\r\n\r\nThis notebook is a quick introduction to JavaScript (ObservableHQ flavour) notebooks. To get the full experience it is strongly recommended that you install the [JavsaScript Notebook Extension Pack](https://marketplace.visualstudio.com/items?itemName=GordonSmith.js-notebook-extension-pack) as it includes additional support for some of the more esoteric cell types.\r\n\r\n## Cell Types\r\n\r\n### Markdown",
"mode": "md",
"outputs": []
},
{
"id": 1,
"name": "",
"value": "\r\nThis cell is an example of the VS Code builtin Markdown support. It does not support embedded value.\r\n\r\n### ObservableHQ Markdown",
"mode": "md",
"outputs": []
},
{
"id": 2,
"name": "",
"value": "This cell contains [Observable HQ](https://observablehq.com/@observablehq/markdown-quick-reference?collection=@observablehq/notebook-fundamentals) flavoured Markdown. It does support embedding `${someValue}`.",
"mode": "omd",
"outputs": []
},
{
"id": 3,
"name": "",
"value": "### JavaScript",
"mode": "md",
"outputs": []
},
{
"id": 4,
"name": "",
"value": "const warning = \"JavaScript has limitations\";\nreturn warning; ",
"mode": "javascript",
"outputs": []
},
{
"id": 5,
"name": "",
"value": "### ObservableHQ JavaScript",
"mode": "md",
"outputs": []
},
{
"id": 6,
"name": "",
"value": "noWarning = \"ObservableHQ flavoured JavaScript has been designed specifically to work well in cells!!!\"",
"mode": "js",
"outputs": []
},
{
"id": 7,
"name": "",
"value": "noWarning.toUpperCase();",
"mode": "javascript",
"outputs": []
},
{
"id": 8,
"name": "",
"value": "### HTML",
"mode": "md",
"outputs": []
},
{
"id": 9,
"name": "",
"value": "<hr>\n<p>My First Paragraph</p>\n<hr>\n<p>My second <b>paragraph</b>.</p>\n<hr>",
"mode": "html",
"outputs": []
},
{
"id": 10,
"name": "",
"value": "### SVG",
"mode": "md",
"outputs": []
},
{
"id": 11,
"name": "",
"value": "<svg version=\"1.1\" width=\"300\" height=\"200\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect width=\"100%\" height=\"100%\" fill=\"whitesmoke\" />\n <circle cx=\"150\" cy=\"100\" r=\"80\" fill=\"red\" />\n <text x=\"150\" y=\"125\" font-size=\"60\" text-anchor=\"middle\" fill=\"white\">SVG</text>\n</svg>",
"mode": "svg",
"outputs": []
},
{
"id": 12,
"name": "",
"value": "### GraphViz (DOT)",
"mode": "md",
"outputs": []
},
{
"id": 13,
"name": "",
"value": "digraph D {\n\n A [shape=diamond]\n B [shape=box]\n C [shape=circle]\n\n A -> B [style=dashed, color=grey] \n A -> C [color=\"black:invis:black\"]\n A -> D [penwidth=5, arrowhead=none]\n\n}",
"mode": "dot",
"outputs": []
},
{
"id": 14,
"name": "",
"value": "### Mermaid",
"mode": "md",
"outputs": []
},
{
"id": 15,
"name": "",
"value": "gantt\ndateFormat YYYY-MM-DD\ntitle Adding GANTT diagram to mermaid\nexcludes weekdays 2014-01-10\n\nsection A section\nCompleted task :done, des1, 2014-01-06,2014-01-08\nActive task :active, des2, 2014-01-09, 3d\nFuture task : des3, after des2, 5d\nFuture task2 : des4, after des3, 5d",
"mode": "mermaid",
"outputs": []
},
{
"id": 16,
"name": "",
"value": "### LaTeX",
"mode": "md",
"outputs": []
},
{
"id": 17,
"name": "",
"value": "f(x) = \\int_{-\\infty}^\\infty\n \\hat f(\\xi)\\,e^{2 \\pi i \\xi x}\n \\,d\\xi",
"mode": "tex",
"outputs": []
}
]
}