Skip to content

Commit 4749e89

Browse files
add world rivers and lakes Pyolite notebooks for geojson data display example and testing (#37)
1 parent 70c8e04 commit 4749e89

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

notebooks/world-lakes.ipynb

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"source": [
6+
"# World Lakes Pyolite Notebook 📓"
7+
],
8+
"metadata": {}
9+
},
10+
{
11+
"cell_type": "code",
12+
"execution_count": null,
13+
"source": [
14+
"from js import fetch\r\n",
15+
"response = await fetch('https://raw.githubusercontent.com/RandomFractals/vscode-data-table/main/data/world-lakes.geojson')\r\n",
16+
"lakes = await response.text()\r\n",
17+
"lakes"
18+
],
19+
"outputs": [],
20+
"metadata": {}
21+
}
22+
],
23+
"metadata": {
24+
"orig_nbformat": 4,
25+
"language_info": {
26+
"name": "python"
27+
}
28+
},
29+
"nbformat": 4,
30+
"nbformat_minor": 2
31+
}

notebooks/world-rivers.ipynb

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"source": [
6+
"# World Rivers Pyolite Notebook 📓"
7+
],
8+
"metadata": {}
9+
},
10+
{
11+
"cell_type": "code",
12+
"execution_count": null,
13+
"source": [
14+
"from js import fetch\r\n",
15+
"response = await fetch('https://raw.githubusercontent.com/RandomFractals/vscode-data-table/main/data/world-rivers.geojson')\r\n",
16+
"rivers = await response.text()\r\n",
17+
"rivers"
18+
],
19+
"outputs": [],
20+
"metadata": {}
21+
}
22+
],
23+
"metadata": {
24+
"orig_nbformat": 4,
25+
"language_info": {
26+
"name": "python"
27+
}
28+
},
29+
"nbformat": 4,
30+
"nbformat_minor": 2
31+
}

0 commit comments

Comments
 (0)