Skip to content

Commit 70c8e04

Browse files
add world-cities.ipynb Pyolite notebook for testing geojson data display (#37)
1 parent 235b5bc commit 70c8e04

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

notebooks/world-cities.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 Cities 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-cities.geojson')\r\n",
16+
"cities = await response.text()\r\n",
17+
"cities"
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)