|
29 | 29 | "metadata": {
|
30 | 30 | "collapsed": false,
|
31 | 31 | "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" |
36 | 36 | }
|
37 | 37 | },
|
38 | 38 | "outputs": [
|
|
60 | 60 | "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",
|
61 | 61 | "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",
|
62 | 62 | "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" |
69 | 64 | ]
|
70 | 65 | },
|
71 | 66 | {
|
72 | 67 | "name": "stdout",
|
73 | 68 | "output_type": "stream",
|
74 | 69 | "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", |
75 | 75 | "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",
|
76 | 76 | "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",
|
77 | 77 | "Downloading python_frontmatter-1.1.0-py3-none-any.whl (9.8 kB)\r\n"
|
|
81 | 81 | "name": "stdout",
|
82 | 82 | "output_type": "stream",
|
83 | 83 | "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", |
91 | 85 | "Successfully installed python-frontmatter-1.1.0\r\n"
|
92 | 86 | ]
|
93 | 87 | },
|
|
118 | 112 | "metadata": {
|
119 | 113 | "collapsed": false,
|
120 | 114 | "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" |
125 | 119 | }
|
126 | 120 | },
|
127 | 121 | "outputs": [],
|
128 | 122 | "source": [
|
129 | 123 | "# Collect the Markdown files\n",
|
130 |
| - "g = glob.glob(\"*.md\")" |
| 124 | + "g = glob.glob(\"_talks/*.md\")" |
131 | 125 | ]
|
132 | 126 | },
|
133 | 127 | {
|
|
136 | 130 | "metadata": {
|
137 | 131 | "collapsed": true,
|
138 | 132 | "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" |
143 | 137 | }
|
144 | 138 | },
|
145 | 139 | "outputs": [],
|
|
152 | 146 | "title = \"\""
|
153 | 147 | ]
|
154 | 148 | },
|
| 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 | + }, |
155 | 156 | {
|
156 | 157 | "cell_type": "code",
|
157 | 158 | "execution_count": 4,
|
158 | 159 | "metadata": {
|
159 | 160 | "collapsed": false,
|
160 | 161 | "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" |
165 | 166 | }
|
166 | 167 | },
|
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 | + ], |
168 | 198 | "source": [
|
169 | 199 | "# Perform geolocation\n",
|
170 | 200 | "for file in g:\n",
|
|
180 | 210 | " title = data['title'].strip()\n",
|
181 | 211 | " venue = data['venue'].strip()\n",
|
182 | 212 | " 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", |
185 | 214 | "\n",
|
186 | 215 | " # Geocode the location and report the status\n",
|
187 | 216 | " location_dict[description] = geocoder.geocode(location)\n",
|
|
194 | 223 | "metadata": {
|
195 | 224 | "collapsed": false,
|
196 | 225 | "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" |
201 | 230 | }
|
202 | 231 | },
|
203 | 232 | "outputs": [
|
204 | 233 | {
|
205 | 234 | "data": {
|
206 | 235 | "text/plain": [
|
207 |
| - "'Written map to ../talkmap/'" |
| 236 | + "'Written map to talkmap/'" |
208 | 237 | ]
|
209 | 238 | },
|
210 | 239 | "execution_count": 5,
|
|
215 | 244 | "source": [
|
216 | 245 | "# Save the map\n",
|
217 | 246 | "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)" |
219 | 248 | ]
|
220 | 249 | },
|
221 | 250 | {
|
|
0 commit comments