Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 3816c68

Browse files
scottdangelostevemar
authored andcommitted
Document Renderer as bokeh and Map Box Token. (#87)
Document that the `Renderer` must be `bokeh`. Add explicit instructions and screenshots for adding the `Map Box Token`. Closes: #83 Closes: #84
1 parent 998402c commit 3816c68

File tree

5 files changed

+30
-8
lines changed

5 files changed

+30
-8
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Sign up for IBM's [Watson Studio](https://dataplatform.cloud.ibm.com/). By creat
6666

6767
### 3. Run the notebook
6868

69-
> NOTE: See the points in the notebook where you will have to enter your [Mapbox Token](https://www.mapbox.com) to render the map.
69+
> NOTE: There are points in the notebook where you will have to enter your [Mapbox Token](https://www.mapbox.com) to render the map.
7070
7171
When a notebook is executed, what is actually happening is that each code cell in
7272
the notebook is executed, in order, from top to bottom.
367 KB
Loading
Loading
Loading

notebooks/HoustonFlood2017.ipynb

+29-7
Original file line numberDiff line numberDiff line change
@@ -428,11 +428,16 @@
428428
"\n",
429429
"With ther pixiedust helper library, we can display charts and graphs more easily, with the one-line `display()` method.\n",
430430
" \n",
431-
"#### 2.7.1 Select _DataFrame Table_ icon in the display widget to see the data in tabular form\n",
431+
"#### 2.7.1 Make sure that the `Renderer` is set to `bokeh`:\n",
432+
"\n",
433+
"<img width=\"500\" src=\"https://raw.githubusercontent.com/IBM/visualize-data-with-python/master/doc/source/images/choose-renderer-bokeh.png\">\n",
434+
"\n",
435+
"\n",
436+
"#### 2.7.2 Select _DataFrame Table_ icon in the display widget to see the data in tabular form\n",
432437
"\n",
433438
"<img width=\"500\" src=\"https://raw.githubusercontent.com/IBM/visualize-data-with-python/master/doc/source/images/selectDataFrameTableIcon.png\">\n",
434439
"\n",
435-
"#### 2.7.2 Select the chart icon to pull down and choose `line chart`. Click the `Options` button, and then for `Keys` drag and drop `datetime` and for `Values` drag and drop `Discharge`. This will display the water discharge at this stream gauge in cubic feet per second.\n",
440+
"#### 2.7.3 Select the chart icon to pull down and choose `line chart`. Click the `Options` button, and then for `Keys` drag and drop `datetime` and for `Values` drag and drop `Discharge`. This will display the water discharge at this stream gauge in cubic feet per second.\n",
436441
"\n",
437442
"<img width=\"500\" src=\"https://raw.githubusercontent.com/IBM/visualize-data-with-python/master/doc/source/images/selectLineChart.png\">\n",
438443
"\n",
@@ -453,9 +458,8 @@
453458
"filter": "{}",
454459
"handlerId": "lineChart",
455460
"keyFields": "datetime",
456-
"mapboxtoken": "",
457461
"no_margin": "true",
458-
"rendererId": "matplotlib",
462+
"rendererId": "bokeh",
459463
"rowCount": "843",
460464
"timeseries": "true",
461465
"valueFields": "GuageHeight(feet)"
@@ -510,6 +514,15 @@
510514
"maxFlood"
511515
]
512516
},
517+
{
518+
"cell_type": "markdown",
519+
"metadata": {},
520+
"source": [
521+
"#### Insert your [Mapbox token](https://www.mapbox.com/) after running the cell below by clicking the `Options` button and adding it to the form.\n",
522+
"\n",
523+
"<img width=\"500\" src=\"https://raw.githubusercontent.com/IBM/visualize-data-with-python/master/doc/source/images/map-view-options-add-mapbox-token.png\">\n"
524+
]
525+
},
513526
{
514527
"cell_type": "code",
515528
"execution_count": null,
@@ -580,7 +593,16 @@
580593
"metadata": {},
581594
"outputs": [],
582595
"source": [
583-
"!wget https://raw.githubusercontent.com/IBM/visualize-data-with-python/master/data/streamGauges.geojson\n"
596+
"!wget https://raw.githubusercontent.com/IBM/visualize-data-with-python/master/data/streamGauges.geojson\n"
597+
]
598+
},
599+
{
600+
"cell_type": "markdown",
601+
"metadata": {},
602+
"source": [
603+
"#### Add your `mapboxtoken` to the PixieApp:\n",
604+
"\n",
605+
"<img width=\"500\" src=\"https://raw.githubusercontent.com/IBM/visualize-data-with-python/master/doc/source/images/pixieapp-add-mapbox-token.png\">"
584606
]
585607
},
586608
{
@@ -846,7 +868,7 @@
846868
],
847869
"metadata": {
848870
"kernelspec": {
849-
"display_name": "Python 3",
871+
"display_name": "Python 3.6",
850872
"language": "python",
851873
"name": "python3"
852874
},
@@ -860,7 +882,7 @@
860882
"name": "python",
861883
"nbconvert_exporter": "python",
862884
"pygments_lexer": "ipython3",
863-
"version": "3.6.2"
885+
"version": "3.6.8"
864886
}
865887
},
866888
"nbformat": 4,

0 commit comments

Comments
 (0)