You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Below we'll wrap the relevant code to generate the data stream into a function we call <code>lets_stream()</code>.
360
-
We will also follow up with a while loop that will keep our stream up persistently.</p>
361
+
We will also follow up with a while loop that will keep our stream up persistently. Notice that the small green dot is the departing airport, the red dot is the arrival airport, and the blue dot is the plane!</p>
Copy file name to clipboardExpand all lines: _posts/user_guide_python/geo-streaming.ipynb
+16-28Lines changed: 16 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@
32
32
},
33
33
{
34
34
"cell_type": "code",
35
-
"execution_count": 1,
35
+
"execution_count": 18,
36
36
"metadata": {
37
37
"collapsed": false
38
38
},
@@ -43,7 +43,7 @@
43
43
"'1.9.10'"
44
44
]
45
45
},
46
-
"execution_count": 1,
46
+
"execution_count": 18,
47
47
"metadata": {},
48
48
"output_type": "execute_result"
49
49
}
@@ -65,7 +65,7 @@
65
65
},
66
66
{
67
67
"cell_type": "code",
68
-
"execution_count": 2,
68
+
"execution_count": 19,
69
69
"metadata": {
70
70
"collapsed": false
71
71
},
@@ -109,7 +109,7 @@
109
109
},
110
110
{
111
111
"cell_type": "code",
112
-
"execution_count": 3,
112
+
"execution_count": 20,
113
113
"metadata": {
114
114
"collapsed": false
115
115
},
@@ -128,7 +128,7 @@
128
128
},
129
129
{
130
130
"cell_type": "code",
131
-
"execution_count": 4,
131
+
"execution_count": 21,
132
132
"metadata": {
133
133
"collapsed": false
134
134
},
@@ -156,7 +156,7 @@
156
156
},
157
157
{
158
158
"cell_type": "code",
159
-
"execution_count": 5,
159
+
"execution_count": 22,
160
160
"metadata": {
161
161
"collapsed": false
162
162
},
@@ -167,7 +167,7 @@
167
167
"{'maxpoints': 3, 'token': u'4lm5a0gsr8'}"
168
168
]
169
169
},
170
-
"execution_count": 5,
170
+
"execution_count": 22,
171
171
"metadata": {},
172
172
"output_type": "execute_result"
173
173
}
@@ -193,7 +193,7 @@
193
193
},
194
194
{
195
195
"cell_type": "code",
196
-
"execution_count": 6,
196
+
"execution_count": 23,
197
197
"metadata": {
198
198
"collapsed": false
199
199
},
@@ -207,7 +207,7 @@
207
207
"<plotly.tools.PlotlyDisplay object>"
208
208
]
209
209
},
210
-
"execution_count": 6,
210
+
"execution_count": 23,
211
211
"metadata": {},
212
212
"output_type": "execute_result"
213
213
}
@@ -227,8 +227,9 @@
227
227
" width=1,\n",
228
228
" color='rgba(102, 102, 102)'\n",
229
229
" ),\n",
230
-
" stream=stream_id\n",
231
-
" ))]\n",
230
+
" ),\n",
231
+
" stream=stream_id,\n",
232
+
" name=\"Plane\")]\n",
232
233
"\n",
233
234
"layout = dict(\n",
234
235
" title = 'Busy Airplane Streaming',\n",
@@ -258,7 +259,7 @@
258
259
},
259
260
{
260
261
"cell_type": "code",
261
-
"execution_count": 7,
262
+
"execution_count": 24,
262
263
"metadata": {
263
264
"collapsed": false
264
265
},
@@ -279,29 +280,16 @@
279
280
"metadata": {},
280
281
"source": [
281
282
"Below we'll wrap the relevant code to generate the data stream into a function we call `lets_stream()`.\n",
282
-
"We will also follow up with a while loop that will keep our stream up persistently."
283
+
"We will also follow up with a while loop that will keep our stream up persistently. Notice that the small green dot is the departing airport, the red dot is the arrival airport, and the blue dot is the plane!"
0 commit comments