Skip to content

Commit c8736d7

Browse files
committed
Reorganised demos in line with core examples
1 parent 5669293 commit c8736d7

17 files changed

+723
-220
lines changed

content/2021-06-03-pydata-paris.ipynb

Lines changed: 0 additions & 220 deletions
This file was deleted.

content/data/Museums_in_DC.geojson

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

content/data/bar.vl.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"data": {
3+
"values": [
4+
{
5+
"a": "A",
6+
"b": 28
7+
},
8+
{
9+
"a": "B",
10+
"b": 55
11+
},
12+
{
13+
"a": "C",
14+
"b": 43
15+
},
16+
{
17+
"a": "D",
18+
"b": 91
19+
},
20+
{
21+
"a": "E",
22+
"b": 81
23+
},
24+
{
25+
"a": "F",
26+
"b": 53
27+
},
28+
{
29+
"a": "G",
30+
"b": 19
31+
},
32+
{
33+
"a": "H",
34+
"b": 87
35+
},
36+
{
37+
"a": "I",
38+
"b": 52
39+
}
40+
]
41+
},
42+
"description": "A simple bar chart with embedded data.",
43+
"encoding": {
44+
"x": {
45+
"field": "a",
46+
"type": "ordinal"
47+
},
48+
"y": {
49+
"field": "b",
50+
"type": "quantitative"
51+
}
52+
},
53+
"mark": "bar"
54+
}

content/data/fasta-example.fasta

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
>SEQUENCE_1
2+
MTEITAAMVKELRESTGAGMMDCKNALSETNGDFDKAVQLLREKGLGKAAKKADRLAAEG
3+
LVSVKVSDDFTIAAMRPSYLSYEDLDMTFVENEYKALVAELEKENEERRRLKDPNKPEHK
4+
IPQFASRKQLSDAILKEAEEKIKEELKAQGKPEKIWDNIIPGKMNSFIADNSQLDSKLTL
5+
MGQFYVMDDKKTVEQVIAEKEKEFGGKIKIVEFICFEVGEGLEKKTEDFAAEVAAQL
6+
>SEQUENCE_2
7+
SATVSEINSETDFVAKNDQFIALTKDTTAHIQSNSLQSVEELHSSTINGVKFEEYLKSQI
8+
ATIGENLVVRRFATLKAGANGVVNGYIHTNGRVGVVIAAACDSAEVASKSRDLLRQICMH
File renamed without changes.

content/javascript.ipynb

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"metadata": {
3+
"language_info": {
4+
"codemirror_mode": {
5+
"name": "javascript"
6+
},
7+
"file_extension": ".js",
8+
"mimetype": "text/javascript",
9+
"name": "javascript",
10+
"nbconvert_exporter": "javascript",
11+
"pygments_lexer": "javascript",
12+
"version": "es2017"
13+
},
14+
"kernelspec": {
15+
"name": "javascript",
16+
"display_name": "JavaScript",
17+
"language": "javascript"
18+
},
19+
"toc-showcode": true
20+
},
21+
"nbformat_minor": 4,
22+
"nbformat": 4,
23+
"cells": [
24+
{
25+
"cell_type": "markdown",
26+
"source": "# JavaScript in `JupyterLite`\n\n![](https://jupyterlite.readthedocs.io/en/latest/_static/kernelspecs/javascript.svg)",
27+
"metadata": {}
28+
},
29+
{
30+
"cell_type": "markdown",
31+
"source": "## Standard streams",
32+
"metadata": {}
33+
},
34+
{
35+
"cell_type": "code",
36+
"source": "console.log('hello world')",
37+
"metadata": {
38+
"trusted": true
39+
},
40+
"execution_count": null,
41+
"outputs": []
42+
},
43+
{
44+
"cell_type": "code",
45+
"source": "console.error('error')",
46+
"metadata": {
47+
"trusted": true
48+
},
49+
"execution_count": null,
50+
"outputs": []
51+
},
52+
{
53+
"cell_type": "markdown",
54+
"source": "## JavaScript specific constructs",
55+
"metadata": {}
56+
},
57+
{
58+
"cell_type": "code",
59+
"source": "const delay = 2000;\n\nsetTimeout(() => {\n console.log('done');\n}, delay);",
60+
"metadata": {
61+
"trusted": true
62+
},
63+
"execution_count": null,
64+
"outputs": []
65+
},
66+
{
67+
"cell_type": "code",
68+
"source": "var str = \"hello world\"\nstr.split('').forEach(c => {\n console.log(c)\n})",
69+
"metadata": {
70+
"trusted": true
71+
},
72+
"execution_count": null,
73+
"outputs": []
74+
},
75+
{
76+
"cell_type": "markdown",
77+
"source": "## Markdown cells",
78+
"metadata": {}
79+
},
80+
{
81+
"cell_type": "markdown",
82+
"source": "Lorenz system of differential equations\n\n$$\n\\begin{aligned}\n\\dot{x} & = \\sigma(y-x) \\\\\n\\dot{y} & = \\rho x - y - xz \\\\\n\\dot{z} & = -\\beta z + xy\n\\end{aligned}\n$$\n",
83+
"metadata": {}
84+
}
85+
]
86+
}

content/matplotlib.png

25.8 KB
Loading

0 commit comments

Comments
 (0)