Skip to content

Commit

Permalink
Merge 69710aa into 8ae3454
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbaumann committed Jun 11, 2018
2 parents 8ae3454 + 69710aa commit 57edfb2
Showing 1 changed file with 31 additions and 36 deletions.
67 changes: 31 additions & 36 deletions examples/notebooks/choropleth-viz-example.ipynb
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -32,7 +32,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 2,
"metadata": {
"scrolled": false
},
Expand Down Expand Up @@ -180,7 +180,7 @@
"<script type='text/javascript'>\n",
"\n",
"\n",
" mapboxgl.accessToken = 'pk.eyJ1IjoicnNiYXVtYW5uIiwiYSI6IjdiOWEzZGIyMGNkOGY3NWQ4ZTBhN2Y5ZGU2Mzg2NDY2In0.jycgv7qwF8MMIWt4cT0RaQ';\n",
" mapboxgl.accessToken = 'pk.eyJ1IjoicnNiYXVtYW5uIiwiYSI6ImNqZmRjdWEzeTFqdHUycW0xbGVxcmduaW0ifQ.GhWt5PoWTQgRLjMP6Lqf1w';\n",
"\n",
" var map = new mapboxgl.Map({\n",
" container: 'map',\n",
Expand All @@ -193,11 +193,10 @@
" if ( url.slice(0,22) == 'https://api.mapbox.com' || \n",
" url.slice(0,26) == 'https://a.tiles.mapbox.com' || \n",
" url.slice(0,26) == 'https://b.tiles.mapbox.com' ||\n",
" url.slice(0,26) == 'https://c.tiles.mapbox.com' ||\n",
" url.slice(0,26) == 'https://d.tiles.mapbox.com') {\n",
" //Add Mapboxgl-Jupyter Plugin identifier for Mapbox API traffic\n",
" url.slice(0,26) == 'https://c.tiles.mapbox.com') {\n",
" //Add PowerBI Plugin identifier for Mapbox API traffic\n",
" return {\n",
" url: [url.slice(0, url.indexOf('?')+1), 'pluginName=PythonMapboxgl&', url.slice(url.indexOf('?')+1)].join('')\n",
" url: [url.slice(0, url.indexOf('?')+1), 'pluginName=PowerBI&', url.slice(url.indexOf('?')+1)].join('')\n",
" }\n",
" }\n",
" else {\n",
Expand Down Expand Up @@ -373,7 +372,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -519,7 +518,7 @@
"<script type='text/javascript'>\n",
"\n",
"\n",
" mapboxgl.accessToken = 'pk.eyJ1IjoicnNiYXVtYW5uIiwiYSI6IjdiOWEzZGIyMGNkOGY3NWQ4ZTBhN2Y5ZGU2Mzg2NDY2In0.jycgv7qwF8MMIWt4cT0RaQ';\n",
" mapboxgl.accessToken = 'pk.eyJ1IjoicnNiYXVtYW5uIiwiYSI6ImNqZmRjdWEzeTFqdHUycW0xbGVxcmduaW0ifQ.GhWt5PoWTQgRLjMP6Lqf1w';\n",
"\n",
" var map = new mapboxgl.Map({\n",
" container: 'map',\n",
Expand All @@ -532,11 +531,10 @@
" if ( url.slice(0,22) == 'https://api.mapbox.com' || \n",
" url.slice(0,26) == 'https://a.tiles.mapbox.com' || \n",
" url.slice(0,26) == 'https://b.tiles.mapbox.com' ||\n",
" url.slice(0,26) == 'https://c.tiles.mapbox.com' ||\n",
" url.slice(0,26) == 'https://d.tiles.mapbox.com') {\n",
" //Add Mapboxgl-Jupyter Plugin identifier for Mapbox API traffic\n",
" url.slice(0,26) == 'https://c.tiles.mapbox.com') {\n",
" //Add PowerBI Plugin identifier for Mapbox API traffic\n",
" return {\n",
" url: [url.slice(0, url.indexOf('?')+1), 'pluginName=PythonMapboxgl&', url.slice(url.indexOf('?')+1)].join('')\n",
" url: [url.slice(0, url.indexOf('?')+1), 'pluginName=PowerBI&', url.slice(url.indexOf('?')+1)].join('')\n",
" }\n",
" }\n",
" else {\n",
Expand Down Expand Up @@ -726,7 +724,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -872,7 +870,7 @@
"<script type='text/javascript'>\n",
"\n",
"\n",
" mapboxgl.accessToken = 'pk.eyJ1IjoicnNiYXVtYW5uIiwiYSI6IjdiOWEzZGIyMGNkOGY3NWQ4ZTBhN2Y5ZGU2Mzg2NDY2In0.jycgv7qwF8MMIWt4cT0RaQ';\n",
" mapboxgl.accessToken = 'pk.eyJ1IjoicnNiYXVtYW5uIiwiYSI6ImNqZmRjdWEzeTFqdHUycW0xbGVxcmduaW0ifQ.GhWt5PoWTQgRLjMP6Lqf1w';\n",
"\n",
" var map = new mapboxgl.Map({\n",
" container: 'map',\n",
Expand All @@ -885,11 +883,10 @@
" if ( url.slice(0,22) == 'https://api.mapbox.com' || \n",
" url.slice(0,26) == 'https://a.tiles.mapbox.com' || \n",
" url.slice(0,26) == 'https://b.tiles.mapbox.com' ||\n",
" url.slice(0,26) == 'https://c.tiles.mapbox.com' ||\n",
" url.slice(0,26) == 'https://d.tiles.mapbox.com') {\n",
" //Add Mapboxgl-Jupyter Plugin identifier for Mapbox API traffic\n",
" url.slice(0,26) == 'https://c.tiles.mapbox.com') {\n",
" //Add PowerBI Plugin identifier for Mapbox API traffic\n",
" return {\n",
" url: [url.slice(0, url.indexOf('?')+1), 'pluginName=PythonMapboxgl&', url.slice(url.indexOf('?')+1)].join('')\n",
" url: [url.slice(0, url.indexOf('?')+1), 'pluginName=PowerBI&', url.slice(url.indexOf('?')+1)].join('')\n",
" }\n",
" }\n",
" else {\n",
Expand Down Expand Up @@ -1070,7 +1067,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1216,7 +1213,7 @@
"<script type='text/javascript'>\n",
"\n",
"\n",
" mapboxgl.accessToken = 'pk.eyJ1IjoicnNiYXVtYW5uIiwiYSI6IjdiOWEzZGIyMGNkOGY3NWQ4ZTBhN2Y5ZGU2Mzg2NDY2In0.jycgv7qwF8MMIWt4cT0RaQ';\n",
" mapboxgl.accessToken = 'pk.eyJ1IjoicnNiYXVtYW5uIiwiYSI6ImNqZmRjdWEzeTFqdHUycW0xbGVxcmduaW0ifQ.GhWt5PoWTQgRLjMP6Lqf1w';\n",
"\n",
" var map = new mapboxgl.Map({\n",
" container: 'map',\n",
Expand All @@ -1229,11 +1226,10 @@
" if ( url.slice(0,22) == 'https://api.mapbox.com' || \n",
" url.slice(0,26) == 'https://a.tiles.mapbox.com' || \n",
" url.slice(0,26) == 'https://b.tiles.mapbox.com' ||\n",
" url.slice(0,26) == 'https://c.tiles.mapbox.com' ||\n",
" url.slice(0,26) == 'https://d.tiles.mapbox.com') {\n",
" //Add Mapboxgl-Jupyter Plugin identifier for Mapbox API traffic\n",
" url.slice(0,26) == 'https://c.tiles.mapbox.com') {\n",
" //Add PowerBI Plugin identifier for Mapbox API traffic\n",
" return {\n",
" url: [url.slice(0, url.indexOf('?')+1), 'pluginName=PythonMapboxgl&', url.slice(url.indexOf('?')+1)].join('')\n",
" url: [url.slice(0, url.indexOf('?')+1), 'pluginName=PowerBI&', url.slice(url.indexOf('?')+1)].join('')\n",
" }\n",
" }\n",
" else {\n",
Expand Down Expand Up @@ -2233,7 +2229,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -2282,7 +2278,7 @@
"1 1002 29049"
]
},
"execution_count": 6,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -2297,7 +2293,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -2313,7 +2309,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 10,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -2459,7 +2455,7 @@
"<script type='text/javascript'>\n",
"\n",
"\n",
" mapboxgl.accessToken = 'pk.eyJ1IjoicnNiYXVtYW5uIiwiYSI6IjdiOWEzZGIyMGNkOGY3NWQ4ZTBhN2Y5ZGU2Mzg2NDY2In0.jycgv7qwF8MMIWt4cT0RaQ';\n",
" mapboxgl.accessToken = 'pk.eyJ1IjoicnNiYXVtYW5uIiwiYSI6ImNqZmRjdWEzeTFqdHUycW0xbGVxcmduaW0ifQ.GhWt5PoWTQgRLjMP6Lqf1w';\n",
"\n",
" var map = new mapboxgl.Map({\n",
" container: 'map',\n",
Expand All @@ -2472,11 +2468,10 @@
" if ( url.slice(0,22) == 'https://api.mapbox.com' || \n",
" url.slice(0,26) == 'https://a.tiles.mapbox.com' || \n",
" url.slice(0,26) == 'https://b.tiles.mapbox.com' ||\n",
" url.slice(0,26) == 'https://c.tiles.mapbox.com' ||\n",
" url.slice(0,26) == 'https://d.tiles.mapbox.com') {\n",
" //Add Mapboxgl-Jupyter Plugin identifier for Mapbox API traffic\n",
" url.slice(0,26) == 'https://c.tiles.mapbox.com') {\n",
" //Add PowerBI Plugin identifier for Mapbox API traffic\n",
" return {\n",
" url: [url.slice(0, url.indexOf('?')+1), 'pluginName=PythonMapboxgl&', url.slice(url.indexOf('?')+1)].join('')\n",
" url: [url.slice(0, url.indexOf('?')+1), 'pluginName=PowerBI&', url.slice(url.indexOf('?')+1)].join('')\n",
" }\n",
" }\n",
" else {\n",
Expand Down Expand Up @@ -2693,9 +2688,9 @@
"summary": "Mapboxgl Python Data Visualization example"
},
"kernelspec": {
"display_name": "Python3.6 Conda",
"display_name": "Python 3",
"language": "python",
"name": "myenv"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand Down

0 comments on commit 57edfb2

Please sign in to comment.