SlideShare una empresa de Scribd logo
1 de 24
Descargar para leer sin conexión
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
Mapping Data in Jupyter
Notebooks with PixieDust
Margriet Groenendijk & Raj Singh
GeoPython - 10 May 2017 - Basel, Switzerland
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
from mpl_toolkits.basemap import Basemap
from matplotlib.offsetbox import AnnotationBbox, OffsetImage
from matplotlib._png import read_png
from itertools import izip
matplotlib.style.use('bmh')
fig, axes = plt.subplots(nrows=1, ncols=2, 

figsize=(10, 12))
# background maps
m1 = Basemap(projection='mill',resolution=None, 

llcrnrlon=-7.5, llcrnrlat=49.84,urcrnrlon=2.5, 

urcrnrlat=59,ax=axes[0])
m1.drawlsmask(land_color='dimgrey',

ocean_color='dodgerBlue',lakes=True)
# temperature map
for [temp,city] in izip(temps,cities):
lat = city[1]
lon = city[2]
if temp>8:
col='indigo'
...
elif temp>4:
col='turquoise'
x1, y1 = m2(lon,lat)
bbox_props = dict(boxstyle="round,pad=0.3",
fc=col, ec=col, lw=2)
axes[1].text(x1, y1, temp, ha="center", va="center",
size=11,bbox=bbox_props)
plt.tight_layout()
https://www.flickr.com/photos/mjtmail/2170840714
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
PixieDust with Mapbox
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
Watson Data Platform
Weather Machine Learning Watson APIsTwitter Geo
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
IBM Data Science Experience + Project
Jupyter
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr https://medium.com/ibm-watson-data-lab
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
Jupyter + Pixiedust =
1. PackageManager
2. Visualizations
3. Cloud Integration
4. Scala Bridge
5. Extensibility
6. Embedded Apps
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
Package Manager
Uses the GraphFrame Python APIs
Install GraphFrames Spark Package
Install Spark packages or plain jars
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
Visualizations One simple API: display()
Call the Options dialog
Panning/Zooming
options
Performance statistics
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
Cloud Integration
Easily export your data to csv, json, html, etc. locally on your laptop
or into a cloud-based service like Cloudant or Object Storage
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
Scala Bridge
Execute Scala code directly from your python Notebook
Define a Python variable
Use the Python var in Scala
Define a Scala variable
Use the Scala var in Python
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
Extensibility
Easily extend PixieDust to create your own visualizations using
HTML/CSS/JavaScript
Customized
visualisation for
GraphFrame
Graphs
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
Embed Apps in Notebooks
PixieApps encapsulate analytics into lightweight HTML UIs
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
PixieDust demo
https://apsportal.ibm.com/analytics/notebooks/
e76cad7a-30f7-493f-9ea0-7e14be178053/view?
access_token=acc140772a62646df3bd2987ca4a8463c0f8169a
02c9fe6bafc0311fadca85f2
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
How it all works
• Spark DataFrame -> GeoJSON
• /display/chart/renderers/mapbox/mapBoxMapDisplay.py
• Get bin cutoff points for quantiles
• /display/chart/renderers/mapbox/mapBoxMapDisplay.py
• Create choropleth styling JSON
• /display/chart/renderers/mapbox/mapBoxMapDisplay.py
• GeoJSON data and styling JSON => Jinja2 template
• /display/chart/renderers/mapbox/templates/mapView.html
• Render template inside an <iframe> inside the cell
• /display/chart/renderers/mapbox/templates/iframesrcdoc.html
• Call Mapbox basemapping service for streets underlay
• /display/chart/renderers/mapbox/templates/mapView.html
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
Where next with PixieDust?
• Polygon support?
• Grid/raster support?
• More cartographic options?
• Animated temporal visualization?
• arcgis?
• Bokeh maps?
• Folium?
• … any visualisation you want!
Register now!
seti.org/ML4SETI
from The SETI Institute
Hackathon
Galvanize, San Francisco
June 10-11, 2017
Code Challenge
June/July, 2017
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
© 2017 IBM Corp.
Watson Data

Platform@MargrietGr
References
• IBM Data Science Experience - https://datascience.ibm.com
• Pixiedust - https://github.com/ibm-cds-labs/pixiedust
• Project Jupyter - http://jupyter.org/
• Slides - https://www.slideshare.net/MargrietGroenendijk/presentations
• Blog - https://medium.com/ibm-watson-data-lab
• Me - mgroenen@uk.ibm.com - @MargrietGr

Más contenido relacionado

La actualidad más candente

You can build anything (Anita Borg 2011)
You can build anything (Anita Borg 2011)You can build anything (Anita Borg 2011)
You can build anything (Anita Borg 2011)
jmcgill_slideshare
 
CloudClustering: Toward an Iterative Data Processing Pattern on the Cloud
CloudClustering: Toward an Iterative Data Processing Pattern on the CloudCloudClustering: Toward an Iterative Data Processing Pattern on the Cloud
CloudClustering: Toward an Iterative Data Processing Pattern on the Cloud
Ankur Dave
 

La actualidad más candente (20)

Google for モバイル アプリ 16:00: モバイル kpi 分析の新標準 fluentd + google big query
Google for モバイル アプリ   16:00: モバイル kpi 分析の新標準 fluentd + google big queryGoogle for モバイル アプリ   16:00: モバイル kpi 分析の新標準 fluentd + google big query
Google for モバイル アプリ 16:00: モバイル kpi 分析の新標準 fluentd + google big query
 
GCP Gaming 2016 Keynote Seoul, Korea
GCP Gaming 2016 Keynote Seoul, KoreaGCP Gaming 2016 Keynote Seoul, Korea
GCP Gaming 2016 Keynote Seoul, Korea
 
Cadmium x
Cadmium xCadmium x
Cadmium x
 
Getting started with Google Cloud Training Material - 2018
Getting started with Google Cloud Training Material - 2018Getting started with Google Cloud Training Material - 2018
Getting started with Google Cloud Training Material - 2018
 
PaperCut Scan to Cloud
PaperCut Scan to CloudPaperCut Scan to Cloud
PaperCut Scan to Cloud
 
Cloud Computing and HTML5, 2010
Cloud Computing and HTML5, 2010Cloud Computing and HTML5, 2010
Cloud Computing and HTML5, 2010
 
"Traffic Speed Control System in the Cloud using Machine Learning" by Albert ...
"Traffic Speed Control System in the Cloud using Machine Learning" by Albert ..."Traffic Speed Control System in the Cloud using Machine Learning" by Albert ...
"Traffic Speed Control System in the Cloud using Machine Learning" by Albert ...
 
AI Pipeline Optimization using Kubeflow
AI Pipeline Optimization using KubeflowAI Pipeline Optimization using Kubeflow
AI Pipeline Optimization using Kubeflow
 
You can build anything (Anita Borg 2011)
You can build anything (Anita Borg 2011)You can build anything (Anita Borg 2011)
You can build anything (Anita Borg 2011)
 
Google Developers Summit Tokyo - Google Cloud Platform で知る Google クラウドの「Googl...
Google Developers Summit Tokyo - Google Cloud Platform で知る Google クラウドの「Googl...Google Developers Summit Tokyo - Google Cloud Platform で知る Google クラウドの「Googl...
Google Developers Summit Tokyo - Google Cloud Platform で知る Google クラウドの「Googl...
 
How Rough Is Your Runway?
How Rough Is Your Runway? How Rough Is Your Runway?
How Rough Is Your Runway?
 
CloudClustering: Toward an Iterative Data Processing Pattern on the Cloud
CloudClustering: Toward an Iterative Data Processing Pattern on the CloudCloudClustering: Toward an Iterative Data Processing Pattern on the Cloud
CloudClustering: Toward an Iterative Data Processing Pattern on the Cloud
 
What's New in KNIME Analytics Platform 4.1
What's New in KNIME Analytics Platform 4.1What's New in KNIME Analytics Platform 4.1
What's New in KNIME Analytics Platform 4.1
 
What's New in KNIME Analytics Platform 4.0 and KNIME Server 4.9
What's New in KNIME Analytics Platform 4.0 and KNIME Server 4.9What's New in KNIME Analytics Platform 4.0 and KNIME Server 4.9
What's New in KNIME Analytics Platform 4.0 and KNIME Server 4.9
 
GPU-Accelerating A Deep Learning Anomaly Detection Platform
GPU-Accelerating A Deep Learning Anomaly Detection PlatformGPU-Accelerating A Deep Learning Anomaly Detection Platform
GPU-Accelerating A Deep Learning Anomaly Detection Platform
 
Transforming Rasters and Point Clouds
Transforming Rasters and Point CloudsTransforming Rasters and Point Clouds
Transforming Rasters and Point Clouds
 
Recap NEXT 2017
Recap NEXT 2017Recap NEXT 2017
Recap NEXT 2017
 
The nature of Clouds - G-talks - 22.11.2019
The nature of Clouds - G-talks - 22.11.2019 The nature of Clouds - G-talks - 22.11.2019
The nature of Clouds - G-talks - 22.11.2019
 
Ds36715716
Ds36715716Ds36715716
Ds36715716
 
Cycle Cloud 70,000 Core AWS Cluster for HGST
Cycle Cloud 70,000 Core AWS Cluster for HGSTCycle Cloud 70,000 Core AWS Cluster for HGST
Cycle Cloud 70,000 Core AWS Cluster for HGST
 

Similar a GeoPython - Mapping Data in Jupyter Notebooks with PixieDust

RAPIDS cuGraph – Accelerating all your Graph needs
RAPIDS cuGraph – Accelerating all your Graph needsRAPIDS cuGraph – Accelerating all your Graph needs
RAPIDS cuGraph – Accelerating all your Graph needs
Connected Data World
 
Indoor Point Cloud Processing - Deep learning for semantic segmentation of in...
Indoor Point Cloud Processing - Deep learning for semantic segmentation of in...Indoor Point Cloud Processing - Deep learning for semantic segmentation of in...
Indoor Point Cloud Processing - Deep learning for semantic segmentation of in...
CubiCasa
 
Galvanise NYC - Scaling R with Hadoop & Spark. V1.0
Galvanise NYC - Scaling R with Hadoop & Spark. V1.0Galvanise NYC - Scaling R with Hadoop & Spark. V1.0
Galvanise NYC - Scaling R with Hadoop & Spark. V1.0
vithakur
 

Similar a GeoPython - Mapping Data in Jupyter Notebooks with PixieDust (20)

ML6 talk at Nexxworks Bootcamp
ML6 talk at Nexxworks BootcampML6 talk at Nexxworks Bootcamp
ML6 talk at Nexxworks Bootcamp
 
Nexxworks bootcamp ML6 (27/09/2017)
Nexxworks bootcamp ML6 (27/09/2017)Nexxworks bootcamp ML6 (27/09/2017)
Nexxworks bootcamp ML6 (27/09/2017)
 
Machine Learning for Chickens, Autonomous Driving and a 3-year-old Who Won’t ...
Machine Learning for Chickens, Autonomous Driving and a 3-year-old Who Won’t ...Machine Learning for Chickens, Autonomous Driving and a 3-year-old Who Won’t ...
Machine Learning for Chickens, Autonomous Driving and a 3-year-old Who Won’t ...
 
Python gis
Python gisPython gis
Python gis
 
Visualising and Linking Open Data from Multiple Sources
Visualising and Linking Open Data from Multiple SourcesVisualising and Linking Open Data from Multiple Sources
Visualising and Linking Open Data from Multiple Sources
 
Connecting and Visualising Open Data from Multiple Sources
Connecting and Visualising Open Data from Multiple SourcesConnecting and Visualising Open Data from Multiple Sources
Connecting and Visualising Open Data from Multiple Sources
 
Point cloud mesh-investigation_report-lihang
Point cloud mesh-investigation_report-lihangPoint cloud mesh-investigation_report-lihang
Point cloud mesh-investigation_report-lihang
 
Distributed tracing with service meshes and tracing spans across polyglot Mic...
Distributed tracing with service meshes and tracing spans across polyglot Mic...Distributed tracing with service meshes and tracing spans across polyglot Mic...
Distributed tracing with service meshes and tracing spans across polyglot Mic...
 
Neptue Graph Database - 0 to Production
Neptue Graph Database - 0 to ProductionNeptue Graph Database - 0 to Production
Neptue Graph Database - 0 to Production
 
RAPIDS cuGraph – Accelerating all your Graph needs
RAPIDS cuGraph – Accelerating all your Graph needsRAPIDS cuGraph – Accelerating all your Graph needs
RAPIDS cuGraph – Accelerating all your Graph needs
 
Automated ML Workflow for Distributed Big Data Using Analytics Zoo (CVPR2020 ...
Automated ML Workflow for Distributed Big Data Using Analytics Zoo (CVPR2020 ...Automated ML Workflow for Distributed Big Data Using Analytics Zoo (CVPR2020 ...
Automated ML Workflow for Distributed Big Data Using Analytics Zoo (CVPR2020 ...
 
Introduction to mago3D, an Open Source Based Digital Twin Platform
Introduction to mago3D, an Open Source Based Digital Twin PlatformIntroduction to mago3D, an Open Source Based Digital Twin Platform
Introduction to mago3D, an Open Source Based Digital Twin Platform
 
Indoor Point Cloud Processing - Deep learning for semantic segmentation of in...
Indoor Point Cloud Processing - Deep learning for semantic segmentation of in...Indoor Point Cloud Processing - Deep learning for semantic segmentation of in...
Indoor Point Cloud Processing - Deep learning for semantic segmentation of in...
 
Indoor Point Cloud Processing
Indoor Point Cloud ProcessingIndoor Point Cloud Processing
Indoor Point Cloud Processing
 
Galvanise NYC - Scaling R with Hadoop & Spark. V1.0
Galvanise NYC - Scaling R with Hadoop & Spark. V1.0Galvanise NYC - Scaling R with Hadoop & Spark. V1.0
Galvanise NYC - Scaling R with Hadoop & Spark. V1.0
 
State of the Art Web Mapping with Open Source
State of the Art Web Mapping with Open SourceState of the Art Web Mapping with Open Source
State of the Art Web Mapping with Open Source
 
Graph Machine Learning in Production with Neo4j
Graph Machine Learning in Production with Neo4jGraph Machine Learning in Production with Neo4j
Graph Machine Learning in Production with Neo4j
 
Deduplicating and analysing time-series data with Apache Beam and QuestDB
Deduplicating and analysing time-series data with Apache Beam and QuestDBDeduplicating and analysing time-series data with Apache Beam and QuestDB
Deduplicating and analysing time-series data with Apache Beam and QuestDB
 
Start Flying with Python & Apache TinkerPop
Start Flying with Python & Apache TinkerPopStart Flying with Python & Apache TinkerPop
Start Flying with Python & Apache TinkerPop
 
Multiplatform Spark solution for Graph datasources by Javier Dominguez
Multiplatform Spark solution for Graph datasources by Javier DominguezMultiplatform Spark solution for Graph datasources by Javier Dominguez
Multiplatform Spark solution for Graph datasources by Javier Dominguez
 

Más de Margriet Groenendijk

Más de Margriet Groenendijk (20)

Trusting machines with robust, unbiased and reproducible AI
Trusting machines with robust, unbiased and reproducible AITrusting machines with robust, unbiased and reproducible AI
Trusting machines with robust, unbiased and reproducible AI
 
Trusting machines with robust, unbiased and reproducible AI
Trusting machines with robust, unbiased and reproducible AI Trusting machines with robust, unbiased and reproducible AI
Trusting machines with robust, unbiased and reproducible AI
 
Trusting machines with robust, unbiased and reproducible AI
Trusting machines with robust, unbiased and reproducible AI Trusting machines with robust, unbiased and reproducible AI
Trusting machines with robust, unbiased and reproducible AI
 
Weather and Climate Data: Not Just for Meteorologists
Weather and Climate Data: Not Just for MeteorologistsWeather and Climate Data: Not Just for Meteorologists
Weather and Climate Data: Not Just for Meteorologists
 
Navigating the Magical Data Visualisation Forest
Navigating the Magical Data Visualisation ForestNavigating the Magical Data Visualisation Forest
Navigating the Magical Data Visualisation Forest
 
The Convergence of Data Science and Software Development
The Convergence of Data Science and Software DevelopmentThe Convergence of Data Science and Software Development
The Convergence of Data Science and Software Development
 
The Convergence of Data Science and Software Development
The Convergence of Data Science and Software DevelopmentThe Convergence of Data Science and Software Development
The Convergence of Data Science and Software Development
 
The Convergence of Data Science and Software Development
The Convergence of Data Science and Software DevelopmentThe Convergence of Data Science and Software Development
The Convergence of Data Science and Software Development
 
Weather and Climate Data: Not Just for Meteorologists
Weather and Climate Data: Not Just for MeteorologistsWeather and Climate Data: Not Just for Meteorologists
Weather and Climate Data: Not Just for Meteorologists
 
IP EXPO Europe: Data Science in the Cloud
IP EXPO Europe: Data Science in the CloudIP EXPO Europe: Data Science in the Cloud
IP EXPO Europe: Data Science in the Cloud
 
ODSC Europe: Weather and Climate Data: Not Just for Meteorologists
ODSC Europe: Weather and Climate Data: Not Just for MeteorologistsODSC Europe: Weather and Climate Data: Not Just for Meteorologists
ODSC Europe: Weather and Climate Data: Not Just for Meteorologists
 
IP EXPO Nordic: Data Science in the Cloud
IP EXPO Nordic: Data Science in the CloudIP EXPO Nordic: Data Science in the Cloud
IP EXPO Nordic: Data Science in the Cloud
 
PyParis - weather and climate data
PyParis - weather and climate dataPyParis - weather and climate data
PyParis - weather and climate data
 
PyData Barcelona - weather and climate data
PyData Barcelona - weather and climate dataPyData Barcelona - weather and climate data
PyData Barcelona - weather and climate data
 
Data Science Festival - Beginners Guide to Weather and Climate Data
Data Science Festival - Beginners Guide to Weather and Climate DataData Science Festival - Beginners Guide to Weather and Climate Data
Data Science Festival - Beginners Guide to Weather and Climate Data
 
Introduction to the IBM Watson Data Platform
Introduction to the IBM Watson Data PlatformIntroduction to the IBM Watson Data Platform
Introduction to the IBM Watson Data Platform
 
Beginners guide to weather and climate data
Beginners guide to weather and climate dataBeginners guide to weather and climate data
Beginners guide to weather and climate data
 
Big Data Analytics London - Data Science in the Cloud
Big Data Analytics London - Data Science in the CloudBig Data Analytics London - Data Science in the Cloud
Big Data Analytics London - Data Science in the Cloud
 
PixieDust
PixieDustPixieDust
PixieDust
 
Data Science in the Cloud
Data Science in the CloudData Science in the Cloud
Data Science in the Cloud
 

Último

➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men 🔝Sambalpur🔝 Esc...
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men  🔝Sambalpur🔝   Esc...➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men  🔝Sambalpur🔝   Esc...
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men 🔝Sambalpur🔝 Esc...
amitlee9823
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
amitlee9823
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
amitlee9823
 
Just Call Vip call girls Erode Escorts ☎️9352988975 Two shot with one girl (E...
Just Call Vip call girls Erode Escorts ☎️9352988975 Two shot with one girl (E...Just Call Vip call girls Erode Escorts ☎️9352988975 Two shot with one girl (E...
Just Call Vip call girls Erode Escorts ☎️9352988975 Two shot with one girl (E...
gajnagarg
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
amitlee9823
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
amitlee9823
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
amitlee9823
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
amitlee9823
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
gajnagarg
 

Último (20)

DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Detecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning ApproachDetecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning Approach
 
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men 🔝Sambalpur🔝 Esc...
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men  🔝Sambalpur🔝   Esc...➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men  🔝Sambalpur🔝   Esc...
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men 🔝Sambalpur🔝 Esc...
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Just Call Vip call girls Erode Escorts ☎️9352988975 Two shot with one girl (E...
Just Call Vip call girls Erode Escorts ☎️9352988975 Two shot with one girl (E...Just Call Vip call girls Erode Escorts ☎️9352988975 Two shot with one girl (E...
Just Call Vip call girls Erode Escorts ☎️9352988975 Two shot with one girl (E...
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Predicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science ProjectPredicting Loan Approval: A Data Science Project
Predicting Loan Approval: A Data Science Project
 
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
 

GeoPython - Mapping Data in Jupyter Notebooks with PixieDust

  • 1. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr Mapping Data in Jupyter Notebooks with PixieDust Margriet Groenendijk & Raj Singh GeoPython - 10 May 2017 - Basel, Switzerland
  • 2. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr from mpl_toolkits.basemap import Basemap from matplotlib.offsetbox import AnnotationBbox, OffsetImage from matplotlib._png import read_png from itertools import izip matplotlib.style.use('bmh') fig, axes = plt.subplots(nrows=1, ncols=2, 
 figsize=(10, 12)) # background maps m1 = Basemap(projection='mill',resolution=None, 
 llcrnrlon=-7.5, llcrnrlat=49.84,urcrnrlon=2.5, 
 urcrnrlat=59,ax=axes[0]) m1.drawlsmask(land_color='dimgrey',
 ocean_color='dodgerBlue',lakes=True) # temperature map for [temp,city] in izip(temps,cities): lat = city[1] lon = city[2] if temp>8: col='indigo' ... elif temp>4: col='turquoise' x1, y1 = m2(lon,lat) bbox_props = dict(boxstyle="round,pad=0.3", fc=col, ec=col, lw=2) axes[1].text(x1, y1, temp, ha="center", va="center", size=11,bbox=bbox_props) plt.tight_layout() https://www.flickr.com/photos/mjtmail/2170840714
  • 3. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr PixieDust with Mapbox
  • 4. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr Watson Data Platform Weather Machine Learning Watson APIsTwitter Geo
  • 5. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr
  • 6. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr
  • 7. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr IBM Data Science Experience + Project Jupyter
  • 8. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr
  • 9. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr https://medium.com/ibm-watson-data-lab
  • 10. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr Jupyter + Pixiedust = 1. PackageManager 2. Visualizations 3. Cloud Integration 4. Scala Bridge 5. Extensibility 6. Embedded Apps
  • 11. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr Package Manager Uses the GraphFrame Python APIs Install GraphFrames Spark Package Install Spark packages or plain jars
  • 12. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr Visualizations One simple API: display() Call the Options dialog Panning/Zooming options Performance statistics
  • 13. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr Cloud Integration Easily export your data to csv, json, html, etc. locally on your laptop or into a cloud-based service like Cloudant or Object Storage
  • 14. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr Scala Bridge Execute Scala code directly from your python Notebook Define a Python variable Use the Python var in Scala Define a Scala variable Use the Scala var in Python
  • 15. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr Extensibility Easily extend PixieDust to create your own visualizations using HTML/CSS/JavaScript Customized visualisation for GraphFrame Graphs
  • 16. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr Embed Apps in Notebooks PixieApps encapsulate analytics into lightweight HTML UIs
  • 17. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr PixieDust demo https://apsportal.ibm.com/analytics/notebooks/ e76cad7a-30f7-493f-9ea0-7e14be178053/view? access_token=acc140772a62646df3bd2987ca4a8463c0f8169a 02c9fe6bafc0311fadca85f2
  • 18. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr
  • 19. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr How it all works • Spark DataFrame -> GeoJSON • /display/chart/renderers/mapbox/mapBoxMapDisplay.py • Get bin cutoff points for quantiles • /display/chart/renderers/mapbox/mapBoxMapDisplay.py • Create choropleth styling JSON • /display/chart/renderers/mapbox/mapBoxMapDisplay.py • GeoJSON data and styling JSON => Jinja2 template • /display/chart/renderers/mapbox/templates/mapView.html • Render template inside an <iframe> inside the cell • /display/chart/renderers/mapbox/templates/iframesrcdoc.html • Call Mapbox basemapping service for streets underlay • /display/chart/renderers/mapbox/templates/mapView.html
  • 20. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr
  • 21. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr Where next with PixieDust? • Polygon support? • Grid/raster support? • More cartographic options? • Animated temporal visualization? • arcgis? • Bokeh maps? • Folium? • … any visualisation you want!
  • 22. Register now! seti.org/ML4SETI from The SETI Institute Hackathon Galvanize, San Francisco June 10-11, 2017 Code Challenge June/July, 2017
  • 23. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr
  • 24. © 2017 IBM Corp. Watson Data
 Platform@MargrietGr References • IBM Data Science Experience - https://datascience.ibm.com • Pixiedust - https://github.com/ibm-cds-labs/pixiedust • Project Jupyter - http://jupyter.org/ • Slides - https://www.slideshare.net/MargrietGroenendijk/presentations • Blog - https://medium.com/ibm-watson-data-lab • Me - mgroenen@uk.ibm.com - @MargrietGr