SlideShare a Scribd company logo
INTERACTIVE PLANETARY
lessons in interactive python vis
amcasari
pyladies seattle, 23feb2016
nasa
COORDINATES
who: @amcasari
what: @PyLadiesSEA
where: @Concur
why: #Pythonistas
#PyLadiesRock
(now we can be found)
data science via random walks
senior data scientist
@ Concur
control systems
engineering +
robotics + legos
officer in USN
operations research
analyst
wandering dirtbag +
conservation volunteer
EE +
applied math
+ complex systems
underwater robotics
consultant
extraordinaire
SAHM
STORYTELLING LOOP DA LOOP
You Experience
Show
Tell
They
Experience
TRADITIONAL ANALYSIS + STATIC VISUALIZATION: WE MOSTLY TELL
2 + 2 = 4
HOW DO WE SEE THE WORLD: EXPERIENCE
the elwha river, olympic peninsula, wa
HOW DO WE SEE THE WORLD: SHOW
the elwha river, olympic peninsula, wa
HOW DO WE SEE THE (DATA) WORLD: TELL
then there’s this…
seattle times: the elwha river, olympic peninsula, wa
american rivers
nps
HOW DO WE REALLY, REALLY SEE THE WORLD?
field biologist
You Experience
INTERACTIVE VISUALIZATION!
Tell
n.b. not approved by Concur’s design team :)
Show
User’s Experience
W/ INTERACTIVE VISUALIZATION: WE SHOW + THEY EXPERIENCE
“because i can…ethics. bias.
data != numbers.
call to think critically about the politics
+ ethics of visualization - catherine
d’ignazio
the point of collection - mimi onuoha
nasa
HOW DO WE (THOUGHTFULLY) SHOW OUR (DATA) WORLD?
periscopic: global gender gap in phds
nytimes: what does a marriage license cost you
2016 primary results + calendar
xkcdsmartmine whale tracker
HOW DO WE (THOUGHTFULLY) SHOW OUR (DATA) WORLD?
all figs from papers here
show + tell != show + experience
HOW DO WE SHOW OUR (DATA) WORLD WITH PYTHON?
HOW DO WE SHOW OUR (DATA) WORLD WITH PYTHON?
HOW DO WE SHOW OUR (DATA) WORLD WITH PYTHON?
HOW DO WE SHOW OUR (DATA) WORLD WITH PYTHON?
+ +
➤ choose your install: conda, pip
➤ seaborn> python viz library based on matplotlib
➤ ipywidgets> add interactive HTML widgets to Jupyter notebooks
➤ which takes advantage of matplotlib’s interactive backend
connectors….
➤ and allows you to layer seaborn for pretty, interactive, lightweight vis
➤ extensible stack for any Python visualization library!
➤ Jupyter + ipywidgets + {insert your fav here}
➤ deploy using Jupyter nbviewer
➤ easy to piece things together for reproducible analysis: reusable code +
interactive plots + deployable notebooks
# note to self: boh-kay, not boh-kah
➤ choose your adventure: python, julia, scala, r
➤ choose your install: conda, pip
➤ targets web browsers for presentation
➤ uses tornado to create a bokeh server
output_file()
➤ can also plot in jupyter notebook w/o bokeh server
output_notebook()
➤ uses mplexporter to help convert matplotlib(!) plots in Bokeh plots
➤ plays well with others: seaborn, ggplot.py, pandas
➤ excellent documentation
➤ recent updates are making way for “BIG DATA” vis
➤ brilliant deep dive into bokeh with christine doig of continuum analytics
+ }
➤ choose your install: conda, pip
➤ uses HTML’s SVG…so not really designed for “BIG DATA” vis
➤ still developing! noted missing features include:
➤ tick locations + tick formatting
➤ plt.xkcd()
➤ plt.annotate()
➤ excellent + growing documentation, including faq’s
➤ extensible beyond matplotlib > client-side interface is pure
javascript library (n.b. current JSON specification designed for
matplotlib)
n.b. this is a jake vanderplas project
DEMO: HELLO
WORLD!
UNDERSTANDING YOUR INTERNET WORLD
export
bookmarks
(.html)
BeautifulSoup
my_links
my_dirs
my_names
bag o’words
still getting
clever
str, regex
http_v_https
counts
all the vis
DEMO!?!
HOW DO WE SHOW OUR (DATA) WORLD WITH PYTHON?
➤ Embed in your favorite Python web framework
➤ Django
➤ Flask
➤ Tornado
➤ Pyramid
➤ Jupyter Notebooks
➤ nbviewer: standalone server for hosting notebooks
➤ Jupyter + github :)
➤ n.b. github renders only static plots (non-html) on jupyter notebooks
➤ Pay us to host your vis!
➤ plot.ly
➤ graphlab create is based on a python data science library
developed + (some) os’d by dato
➤ graphlab canvas: interactive visualization for exploratory
data analysis
NOT ALL BITS ARE OS….BUT….
➤ python library developed + os’d by stitchfix
➤ pyxleyJS React to create Flask-based web apps
“Through the use of the PyReact library, we can use Jinja templating to construct and transform a single React component. The
specific UI components are passed as props to the parent component. A simpler interface is provide through the use of specific
wrappers for each of the component types.”
AND EVEN SHINIER?
{THANKS MUCH}
➤ thank you to everyone in the open
source community for giving me
such lovely tools to talk about
➤ thank you @PyLadiesSEA for
listening
➤ thank you again to @Concur for
hosting, snacks + being a
fantastic place to be a PyLady
➤ slides + git repo links will be
posted to meetup page
amanda.casari@concur.com
@amcasari

More Related Content

PDF
PDF
storm at twitter
PDF
성장을 좋아하는 사람이, 성장하고 싶은 사람에게
PDF
Web Scraping in Python with Scrapy
PDF
Horacio Gonzalez - Rediscover the known Universe with NASA datasets - Codemot...
PDF
Pimp my dev box (Friday Training at Itnig)
PPTX
Introduction to Singularity and Data Containers
PDF
Singularity Registry HPC
storm at twitter
성장을 좋아하는 사람이, 성장하고 싶은 사람에게
Web Scraping in Python with Scrapy
Horacio Gonzalez - Rediscover the known Universe with NASA datasets - Codemot...
Pimp my dev box (Friday Training at Itnig)
Introduction to Singularity and Data Containers
Singularity Registry HPC

Viewers also liked (16)

PDF
Gamify Your Life – My Epic Quest of Awesome - Eric Boyd
PDF
VCP-NV6
PPTX
El diseño electronico
PDF
그룹웨어 사용현황 설문조사
PDF
이제는헌내기조 발표 Ppt
PPTX
거시조직
PPTX
Software as Material (Greg Petroff at Enterprise UX 2016)
PDF
Design at Scale (Adam Cutler at Enterprise UX 2016)
PPTX
Tuning Tips
PDF
[Ignite 강남 2016] 조현길 경영자처럼 일할테니 경영자의 월급을 주세ᄋ...
PDF
[Ignite 강남 2016] 차성국 아들과 함께한 국토대장정
PDF
SlowQueryログ開発秘話#cassandrameetupjp
PDF
The Benefits of Warehouse Management for an eCommerce Business
PPTX
Strategies for making your warehouse more efficient
PDF
Getting involved with Open Source at the ASF
PDF
인간관계의 스트레스 원인 베스트 10
Gamify Your Life – My Epic Quest of Awesome - Eric Boyd
VCP-NV6
El diseño electronico
그룹웨어 사용현황 설문조사
이제는헌내기조 발표 Ppt
거시조직
Software as Material (Greg Petroff at Enterprise UX 2016)
Design at Scale (Adam Cutler at Enterprise UX 2016)
Tuning Tips
[Ignite 강남 2016] 조현길 경영자처럼 일할테니 경영자의 월급을 주세ᄋ...
[Ignite 강남 2016] 차성국 아들과 함께한 국토대장정
SlowQueryログ開発秘話#cassandrameetupjp
The Benefits of Warehouse Management for an eCommerce Business
Strategies for making your warehouse more efficient
Getting involved with Open Source at the ASF
인간관계의 스트레스 원인 베스트 10
Ad

Similar to PyLadies Seattle - Lessons in Interactive Visualizations (20)

PDF
Introduction to plotting in Python
PDF
London level39
PDF
The Joy of SciPy, Part I
PDF
PyData Boston 2013
PDF
Anaconda and PyData Solutions
PDF
Creative Interactive Browser Visualizations with Bokeh by Bryan Van de ven
PDF
Transcript - Data Visualisation - Tools and Techniques
PDF
Scientific Visualization
PPTX
20170927 py data_n3_bokeh_plotly
PDF
PPT4: Frameworks & Libraries of Machine Learning & Deep Learning
PDF
Scientific Plotting in Python
PDF
PyData London Bokeh Tutorial - Bryan Van de Ven
PPTX
Introduction_to_Python.pptx
PPTX
Python Open CV
PDF
datavisualizationinpythonv2-171103225436.pdf
PDF
SciPy Latin America 2019
PDF
Scientific visualization with_gr
PPTX
Data visualisation in python tool - a brief
PPTX
Introduction to Machine Learning by MARK
PDF
Data visualization in Python
Introduction to plotting in Python
London level39
The Joy of SciPy, Part I
PyData Boston 2013
Anaconda and PyData Solutions
Creative Interactive Browser Visualizations with Bokeh by Bryan Van de ven
Transcript - Data Visualisation - Tools and Techniques
Scientific Visualization
20170927 py data_n3_bokeh_plotly
PPT4: Frameworks & Libraries of Machine Learning & Deep Learning
Scientific Plotting in Python
PyData London Bokeh Tutorial - Bryan Van de Ven
Introduction_to_Python.pptx
Python Open CV
datavisualizationinpythonv2-171103225436.pdf
SciPy Latin America 2019
Scientific visualization with_gr
Data visualisation in python tool - a brief
Introduction to Machine Learning by MARK
Data visualization in Python
Ad

More from Amanda Casari (8)

PDF
When Privacy Scales - Intelligent Product Design under GDPR
PDF
Scaling Data Science Products, Not Data Science Teams
PDF
Spark Hearts GraphLab Create
PDF
Apache Spark for Everyone - Women Who Code Workshop
PDF
20160512 apache-spark-for-everyone
PDF
Feature Engineering for Machine Learning at QConSP
PDF
Understanding Products Driven by Machine Learning and AI: A Data Scientist's ...
PDF
Design for X: Exploring Product Design with Apache Spark and GraphLab
When Privacy Scales - Intelligent Product Design under GDPR
Scaling Data Science Products, Not Data Science Teams
Spark Hearts GraphLab Create
Apache Spark for Everyone - Women Who Code Workshop
20160512 apache-spark-for-everyone
Feature Engineering for Machine Learning at QConSP
Understanding Products Driven by Machine Learning and AI: A Data Scientist's ...
Design for X: Exploring Product Design with Apache Spark and GraphLab

Recently uploaded (20)

PPT
Quality review (1)_presentation of this 21
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PDF
.pdf is not working space design for the following data for the following dat...
PDF
Lecture1 pattern recognition............
PPTX
1_Introduction to advance data techniques.pptx
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPTX
05. PRACTICAL GUIDE TO MICROSOFT EXCEL.pptx
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PPTX
Business Acumen Training GuidePresentation.pptx
PDF
Fluorescence-microscope_Botany_detailed content
PDF
Launch Your Data Science Career in Kochi – 2025
PPTX
Database Infoormation System (DBIS).pptx
PPTX
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
PPTX
IB Computer Science - Internal Assessment.pptx
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PDF
Foundation of Data Science unit number two notes
Quality review (1)_presentation of this 21
Miokarditis (Inflamasi pada Otot Jantung)
.pdf is not working space design for the following data for the following dat...
Lecture1 pattern recognition............
1_Introduction to advance data techniques.pptx
oil_refinery_comprehensive_20250804084928 (1).pptx
05. PRACTICAL GUIDE TO MICROSOFT EXCEL.pptx
Supervised vs unsupervised machine learning algorithms
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Business Ppt On Nestle.pptx huunnnhhgfvu
Business Acumen Training GuidePresentation.pptx
Fluorescence-microscope_Botany_detailed content
Launch Your Data Science Career in Kochi – 2025
Database Infoormation System (DBIS).pptx
CEE 2 REPORT G7.pptxbdbshjdgsgjgsjfiuhsd
IB Computer Science - Internal Assessment.pptx
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
Foundation of Data Science unit number two notes

PyLadies Seattle - Lessons in Interactive Visualizations

  • 1. INTERACTIVE PLANETARY lessons in interactive python vis amcasari pyladies seattle, 23feb2016 nasa
  • 2. COORDINATES who: @amcasari what: @PyLadiesSEA where: @Concur why: #Pythonistas #PyLadiesRock (now we can be found)
  • 3. data science via random walks senior data scientist @ Concur control systems engineering + robotics + legos officer in USN operations research analyst wandering dirtbag + conservation volunteer EE + applied math + complex systems underwater robotics consultant extraordinaire SAHM
  • 4. STORYTELLING LOOP DA LOOP You Experience Show Tell They Experience
  • 5. TRADITIONAL ANALYSIS + STATIC VISUALIZATION: WE MOSTLY TELL 2 + 2 = 4
  • 6. HOW DO WE SEE THE WORLD: EXPERIENCE the elwha river, olympic peninsula, wa
  • 7. HOW DO WE SEE THE WORLD: SHOW the elwha river, olympic peninsula, wa
  • 8. HOW DO WE SEE THE (DATA) WORLD: TELL then there’s this… seattle times: the elwha river, olympic peninsula, wa american rivers nps
  • 9. HOW DO WE REALLY, REALLY SEE THE WORLD? field biologist
  • 10. You Experience INTERACTIVE VISUALIZATION! Tell n.b. not approved by Concur’s design team :) Show User’s Experience
  • 11. W/ INTERACTIVE VISUALIZATION: WE SHOW + THEY EXPERIENCE
  • 12. “because i can…ethics. bias. data != numbers. call to think critically about the politics + ethics of visualization - catherine d’ignazio the point of collection - mimi onuoha nasa
  • 13. HOW DO WE (THOUGHTFULLY) SHOW OUR (DATA) WORLD? periscopic: global gender gap in phds nytimes: what does a marriage license cost you 2016 primary results + calendar xkcdsmartmine whale tracker
  • 14. HOW DO WE (THOUGHTFULLY) SHOW OUR (DATA) WORLD? all figs from papers here show + tell != show + experience
  • 15. HOW DO WE SHOW OUR (DATA) WORLD WITH PYTHON?
  • 16. HOW DO WE SHOW OUR (DATA) WORLD WITH PYTHON?
  • 17. HOW DO WE SHOW OUR (DATA) WORLD WITH PYTHON?
  • 18. HOW DO WE SHOW OUR (DATA) WORLD WITH PYTHON?
  • 19. + + ➤ choose your install: conda, pip ➤ seaborn> python viz library based on matplotlib ➤ ipywidgets> add interactive HTML widgets to Jupyter notebooks ➤ which takes advantage of matplotlib’s interactive backend connectors…. ➤ and allows you to layer seaborn for pretty, interactive, lightweight vis ➤ extensible stack for any Python visualization library! ➤ Jupyter + ipywidgets + {insert your fav here} ➤ deploy using Jupyter nbviewer ➤ easy to piece things together for reproducible analysis: reusable code + interactive plots + deployable notebooks
  • 20. # note to self: boh-kay, not boh-kah ➤ choose your adventure: python, julia, scala, r ➤ choose your install: conda, pip ➤ targets web browsers for presentation ➤ uses tornado to create a bokeh server output_file() ➤ can also plot in jupyter notebook w/o bokeh server output_notebook() ➤ uses mplexporter to help convert matplotlib(!) plots in Bokeh plots ➤ plays well with others: seaborn, ggplot.py, pandas ➤ excellent documentation ➤ recent updates are making way for “BIG DATA” vis ➤ brilliant deep dive into bokeh with christine doig of continuum analytics
  • 21. + } ➤ choose your install: conda, pip ➤ uses HTML’s SVG…so not really designed for “BIG DATA” vis ➤ still developing! noted missing features include: ➤ tick locations + tick formatting ➤ plt.xkcd() ➤ plt.annotate() ➤ excellent + growing documentation, including faq’s ➤ extensible beyond matplotlib > client-side interface is pure javascript library (n.b. current JSON specification designed for matplotlib) n.b. this is a jake vanderplas project
  • 23. UNDERSTANDING YOUR INTERNET WORLD export bookmarks (.html) BeautifulSoup my_links my_dirs my_names bag o’words still getting clever str, regex http_v_https counts all the vis DEMO!?!
  • 24. HOW DO WE SHOW OUR (DATA) WORLD WITH PYTHON? ➤ Embed in your favorite Python web framework ➤ Django ➤ Flask ➤ Tornado ➤ Pyramid ➤ Jupyter Notebooks ➤ nbviewer: standalone server for hosting notebooks ➤ Jupyter + github :) ➤ n.b. github renders only static plots (non-html) on jupyter notebooks ➤ Pay us to host your vis! ➤ plot.ly
  • 25. ➤ graphlab create is based on a python data science library developed + (some) os’d by dato ➤ graphlab canvas: interactive visualization for exploratory data analysis NOT ALL BITS ARE OS….BUT….
  • 26. ➤ python library developed + os’d by stitchfix ➤ pyxleyJS React to create Flask-based web apps “Through the use of the PyReact library, we can use Jinja templating to construct and transform a single React component. The specific UI components are passed as props to the parent component. A simpler interface is provide through the use of specific wrappers for each of the component types.” AND EVEN SHINIER?
  • 27. {THANKS MUCH} ➤ thank you to everyone in the open source community for giving me such lovely tools to talk about ➤ thank you @PyLadiesSEA for listening ➤ thank you again to @Concur for hosting, snacks + being a fantastic place to be a PyLady ➤ slides + git repo links will be posted to meetup page amanda.casari@concur.com @amcasari