Skip to content

Commit f9f9bbc

Browse files
committed
Update sandbox.ipynb
1 parent 67662a0 commit f9f9bbc

1 file changed

Lines changed: 46 additions & 11 deletions

File tree

sandbox.ipynb

Lines changed: 46 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,19 @@
55
"id": "cbad6136-196d-4e69-8958-cbe821e94f52",
66
"metadata": {},
77
"source": [
8-
"## Sandbox for setlist repo"
8+
"# Sandbox for the [setlists repo](https://github.com/programming-concert-programming/setlists/)"
9+
]
10+
},
11+
{
12+
"cell_type": "markdown",
13+
"id": "c491b2ef-04b6-4263-b6d3-1ced43e68c89",
14+
"metadata": {},
15+
"source": [
16+
"[See this `index.md` file for a list of tasks](https://github.com/programming-concert-programming/setlists/blob/main/index.md).\n",
17+
"\n",
18+
"Minimally:\n",
19+
"- get an setlist.fm API key\n",
20+
"- use it and this code repo to find out what the concert the event_id `2bd1d8ce` refers to."
921
]
1022
},
1123
{
@@ -16,6 +28,17 @@
1628
"## Workspace"
1729
]
1830
},
31+
{
32+
"cell_type": "code",
33+
"execution_count": null,
34+
"id": "fa2ad838-3309-433f-909a-03a3cb388150",
35+
"metadata": {},
36+
"outputs": [],
37+
"source": [
38+
"# To get started:\n",
39+
"import setlistfm_events_api"
40+
]
41+
},
1942
{
2043
"cell_type": "code",
2144
"execution_count": null,
@@ -41,14 +64,11 @@
4164
]
4265
},
4366
{
44-
"cell_type": "code",
45-
"execution_count": null,
46-
"id": "fa2ad838-3309-433f-909a-03a3cb388150",
67+
"cell_type": "markdown",
68+
"id": "56c0280b-f1c1-495d-8580-22bf7afc5424",
4769
"metadata": {},
48-
"outputs": [],
4970
"source": [
50-
"# To get started:\n",
51-
"import setlistfm_events_api"
71+
"Preferably put your key in `utils`; failing that, create a variable here and use it as an argument in `setlistfm_events_api.get_event_data(event_id, api_key=XYZ)`"
5272
]
5373
},
5474
{
@@ -58,10 +78,25 @@
5878
"metadata": {},
5979
"outputs": [],
6080
"source": [
61-
"event_id = \"138955b1\"\n",
62-
"api_key = \"preferably put your key in `utils`; failing that, put it here and add it as an argument in the next line\"\n",
63-
"a = setlistfm_events_api.get_event_data(event_id)"
81+
"event_id = \"2bd1d8ce\"\n",
82+
"setlistfm_events_api.get_event_data(event_id)"
83+
]
84+
},
85+
{
86+
"cell_type": "markdown",
87+
"id": "bcf959ec-9547-40ff-b52f-d5c38622bb75",
88+
"metadata": {},
89+
"source": [
90+
"So the task is an \"easter egg\" especially for Swifties and students at KCL ;)"
6491
]
92+
},
93+
{
94+
"cell_type": "code",
95+
"execution_count": null,
96+
"id": "6b651d66-dc32-4035-b028-c6005fb3e891",
97+
"metadata": {},
98+
"outputs": [],
99+
"source": []
65100
}
66101
],
67102
"metadata": {
@@ -80,7 +115,7 @@
80115
"name": "python",
81116
"nbconvert_exporter": "python",
82117
"pygments_lexer": "ipython3",
83-
"version": "3.12.7"
118+
"version": "3.13.7"
84119
}
85120
},
86121
"nbformat": 4,

0 commit comments

Comments
 (0)