Discovering interactive visualization libraries in the Notebook

Several libraries provide interactive visualization of 2D or 3D data in the Notebook, using the capabilities of Jupyter widgets. We give basic examples using four of these libraries: ipyleaflet, bqplot, pythreejs, and ipyvolume.

Getting started

To install the libraries, type conda install -c conda-forge ipyleaflet bqplot pythreejs ipyvolume in a Terminal.

How to do it...

  1. First, we show a simple example of ipyleaflet, which offers a Python interface to use the Leaflet.js interactive mapping library (similar to Google Maps, but based on the open source project OpenStreetMaps):
    >>> from ipyleaflet import Map, Marker
  2. We create a map around a given position specified in GPS coordinates:
    >>> pos ...

Get IPython Interactive Computing and Visualization Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.