Skip to content

Commit 6feb7ab

Browse files
Automated update of talk locations
1 parent faf1c37 commit 6feb7ab

File tree

2 files changed

+80
-51
lines changed

2 files changed

+80
-51
lines changed

talkmap/org-locations.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
var addressPoints = [
22
[
3-
"Berkeley CA, USA",
4-
37.8708393,
5-
-122.2728638
3+
"Talk 2 on Relevant Topic in Your Field<br />London School of Testing; London, UK",
4+
51.4893335,
5+
-0.14405508452768728
66
],
77
[
8-
"London, UK",
9-
51.5073219,
10-
-0.1276473
8+
"Tutorial 1 on Relevant Topic in Your Field<br />UC-Berkeley Institute for Testing Science; Berkeley, CA, USA",
9+
37.8708393,
10+
-122.272863
1111
],
1212
[
13-
"San Francisco, California",
14-
37.7792808,
15-
-122.4192362
13+
"Talk 1 on Relevant Topic in Your Field<br />UC San Francisco, Department of Testing; San Francisco, CA, USA",
14+
37.7792588,
15+
-122.4193286
1616
],
1717
[
18-
"Los Angeles, CA",
19-
34.0543942,
20-
-118.2439408
18+
"Conference Proceeding talk 3 on Relevant Topic in Your Field<br />Testing Institute of America 2014 Annual Conference; Los Angeles, CA, USA",
19+
34.0536909,
20+
-118.242766
2121
]
2222
];

talkmap_out.ipynb

Lines changed: 68 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
"metadata": {
3030
"collapsed": false,
3131
"execution": {
32-
"iopub.execute_input": "2025-02-25T02:57:21.388444Z",
33-
"iopub.status.busy": "2025-02-25T02:57:21.387866Z",
34-
"iopub.status.idle": "2025-02-25T02:57:22.511527Z",
35-
"shell.execute_reply": "2025-02-25T02:57:22.510903Z"
32+
"iopub.execute_input": "2025-02-25T03:09:16.810855Z",
33+
"iopub.status.busy": "2025-02-25T03:09:16.810657Z",
34+
"iopub.status.idle": "2025-02-25T03:09:17.938183Z",
35+
"shell.execute_reply": "2025-02-25T03:09:17.937505Z"
3636
}
3737
},
3838
"outputs": [
@@ -60,18 +60,18 @@
6060
"Requirement already satisfied: typing-extensions>=4.0.0 in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from pygithub->getorg) (4.12.2)\r\n",
6161
"Requirement already satisfied: urllib3>=1.26.0 in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from pygithub->getorg) (2.3.0)\r\n",
6262
"Requirement already satisfied: Deprecated in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from pygithub->getorg) (1.2.18)\r\n",
63-
"Requirement already satisfied: six>=1.7.0 in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from retrying->getorg) (1.17.0)\r\n",
64-
"Requirement already satisfied: cryptography>=3.4.0 in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from pyjwt[crypto]>=2.4.0->pygithub->getorg) (44.0.1)\r\n",
65-
"Requirement already satisfied: cffi>=1.4.1 in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from pynacl>=1.4.0->pygithub->getorg) (1.17.1)\r\n",
66-
"Requirement already satisfied: charset-normalizer<4,>=2 in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from requests>=2.14.0->pygithub->getorg) (3.4.1)\r\n",
67-
"Requirement already satisfied: idna<4,>=2.5 in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from requests>=2.14.0->pygithub->getorg) (3.10)\r\n",
68-
"Requirement already satisfied: certifi>=2017.4.17 in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from requests>=2.14.0->pygithub->getorg) (2025.1.31)\r\n"
63+
"Requirement already satisfied: six>=1.7.0 in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from retrying->getorg) (1.17.0)\r\n"
6964
]
7065
},
7166
{
7267
"name": "stdout",
7368
"output_type": "stream",
7469
"text": [
70+
"Requirement already satisfied: cryptography>=3.4.0 in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from pyjwt[crypto]>=2.4.0->pygithub->getorg) (44.0.1)\r\n",
71+
"Requirement already satisfied: cffi>=1.4.1 in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from pynacl>=1.4.0->pygithub->getorg) (1.17.1)\r\n",
72+
"Requirement already satisfied: charset-normalizer<4,>=2 in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from requests>=2.14.0->pygithub->getorg) (3.4.1)\r\n",
73+
"Requirement already satisfied: idna<4,>=2.5 in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from requests>=2.14.0->pygithub->getorg) (3.10)\r\n",
74+
"Requirement already satisfied: certifi>=2017.4.17 in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from requests>=2.14.0->pygithub->getorg) (2025.1.31)\r\n",
7575
"Requirement already satisfied: wrapt<2,>=1.10 in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from Deprecated->pygithub->getorg) (1.17.2)\r\n",
7676
"Requirement already satisfied: pycparser in /opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages (from cffi>=1.4.1->pynacl>=1.4.0->pygithub->getorg) (2.22)\r\n",
7777
"Downloading python_frontmatter-1.1.0-py3-none-any.whl (9.8 kB)\r\n"
@@ -81,13 +81,7 @@
8181
"name": "stdout",
8282
"output_type": "stream",
8383
"text": [
84-
"Installing collected packages: python-frontmatter\r\n"
85-
]
86-
},
87-
{
88-
"name": "stdout",
89-
"output_type": "stream",
90-
"text": [
84+
"Installing collected packages: python-frontmatter\r\n",
9185
"Successfully installed python-frontmatter-1.1.0\r\n"
9286
]
9387
},
@@ -118,16 +112,16 @@
118112
"metadata": {
119113
"collapsed": false,
120114
"execution": {
121-
"iopub.execute_input": "2025-02-25T02:57:22.513776Z",
122-
"iopub.status.busy": "2025-02-25T02:57:22.513344Z",
123-
"iopub.status.idle": "2025-02-25T02:57:22.516648Z",
124-
"shell.execute_reply": "2025-02-25T02:57:22.516090Z"
115+
"iopub.execute_input": "2025-02-25T03:09:17.940290Z",
116+
"iopub.status.busy": "2025-02-25T03:09:17.940054Z",
117+
"iopub.status.idle": "2025-02-25T03:09:17.943342Z",
118+
"shell.execute_reply": "2025-02-25T03:09:17.942828Z"
125119
}
126120
},
127121
"outputs": [],
128122
"source": [
129123
"# Collect the Markdown files\n",
130-
"g = glob.glob(\"*.md\")"
124+
"g = glob.glob(\"_talks/*.md\")"
131125
]
132126
},
133127
{
@@ -136,10 +130,10 @@
136130
"metadata": {
137131
"collapsed": true,
138132
"execution": {
139-
"iopub.execute_input": "2025-02-25T02:57:22.518622Z",
140-
"iopub.status.busy": "2025-02-25T02:57:22.518252Z",
141-
"iopub.status.idle": "2025-02-25T02:57:22.543417Z",
142-
"shell.execute_reply": "2025-02-25T02:57:22.542908Z"
133+
"iopub.execute_input": "2025-02-25T03:09:17.945196Z",
134+
"iopub.status.busy": "2025-02-25T03:09:17.945010Z",
135+
"iopub.status.idle": "2025-02-25T03:09:17.969546Z",
136+
"shell.execute_reply": "2025-02-25T03:09:17.969023Z"
143137
}
144138
},
145139
"outputs": [],
@@ -152,19 +146,55 @@
152146
"title = \"\""
153147
]
154148
},
149+
{
150+
"cell_type": "markdown",
151+
"metadata": {},
152+
"source": [
153+
"In the event that this times out with an error, double check to make sure that the location is can be properly geolocated."
154+
]
155+
},
155156
{
156157
"cell_type": "code",
157158
"execution_count": 4,
158159
"metadata": {
159160
"collapsed": false,
160161
"execution": {
161-
"iopub.execute_input": "2025-02-25T02:57:22.545540Z",
162-
"iopub.status.busy": "2025-02-25T02:57:22.545175Z",
163-
"iopub.status.idle": "2025-02-25T02:57:22.549637Z",
164-
"shell.execute_reply": "2025-02-25T02:57:22.549147Z"
162+
"iopub.execute_input": "2025-02-25T03:09:17.971475Z",
163+
"iopub.status.busy": "2025-02-25T03:09:17.971291Z",
164+
"iopub.status.idle": "2025-02-25T03:09:23.694311Z",
165+
"shell.execute_reply": "2025-02-25T03:09:23.693697Z"
165166
}
166167
},
167-
"outputs": [],
168+
"outputs": [
169+
{
170+
"name": "stdout",
171+
"output_type": "stream",
172+
"text": [
173+
"Talk 2 on Relevant Topic in Your Field<br />London School of Testing; London, UK London, Greater London, England, United Kingdom\n"
174+
]
175+
},
176+
{
177+
"name": "stdout",
178+
"output_type": "stream",
179+
"text": [
180+
"Tutorial 1 on Relevant Topic in Your Field<br />UC-Berkeley Institute for Testing Science; Berkeley, CA, USA Berkeley, Alameda County, California, United States\n"
181+
]
182+
},
183+
{
184+
"name": "stdout",
185+
"output_type": "stream",
186+
"text": [
187+
"Talk 1 on Relevant Topic in Your Field<br />UC San Francisco, Department of Testing; San Francisco, CA, USA San Francisco, California, United States\n"
188+
]
189+
},
190+
{
191+
"name": "stdout",
192+
"output_type": "stream",
193+
"text": [
194+
"Conference Proceeding talk 3 on Relevant Topic in Your Field<br />Testing Institute of America 2014 Annual Conference; Los Angeles, CA, USA Los Angeles, Los Angeles County, California, United States\n"
195+
]
196+
}
197+
],
168198
"source": [
169199
"# Perform geolocation\n",
170200
"for file in g:\n",
@@ -180,8 +210,7 @@
180210
" title = data['title'].strip()\n",
181211
" venue = data['venue'].strip()\n",
182212
" location = data['location'].strip()\n",
183-
" description = f\"{title}\\n{venue}; {location}\"\n",
184-
" print(description)\n",
213+
" description = f\"{title}<br />{venue}; {location}\"\n",
185214
"\n",
186215
" # Geocode the location and report the status\n",
187216
" location_dict[description] = geocoder.geocode(location)\n",
@@ -194,17 +223,17 @@
194223
"metadata": {
195224
"collapsed": false,
196225
"execution": {
197-
"iopub.execute_input": "2025-02-25T02:57:22.551418Z",
198-
"iopub.status.busy": "2025-02-25T02:57:22.551243Z",
199-
"iopub.status.idle": "2025-02-25T02:57:22.558593Z",
200-
"shell.execute_reply": "2025-02-25T02:57:22.557942Z"
226+
"iopub.execute_input": "2025-02-25T03:09:23.696332Z",
227+
"iopub.status.busy": "2025-02-25T03:09:23.696137Z",
228+
"iopub.status.idle": "2025-02-25T03:09:23.704293Z",
229+
"shell.execute_reply": "2025-02-25T03:09:23.703718Z"
201230
}
202231
},
203232
"outputs": [
204233
{
205234
"data": {
206235
"text/plain": [
207-
"'Written map to ../talkmap/'"
236+
"'Written map to talkmap/'"
208237
]
209238
},
210239
"execution_count": 5,
@@ -215,7 +244,7 @@
215244
"source": [
216245
"# Save the map\n",
217246
"m = getorg.orgmap.create_map_obj()\n",
218-
"getorg.orgmap.output_html_cluster_map(location_dict, folder_name=\"../talkmap\", hashed_usernames=False)"
247+
"getorg.orgmap.output_html_cluster_map(location_dict, folder_name=\"talkmap\", hashed_usernames=False)"
219248
]
220249
},
221250
{

0 commit comments

Comments
 (0)