Gapminders

View a running version of this project. | Download this project.


The Panel library from PyViz lets you make widget-controlled apps and dashboards from a wide variety of plotting libraries and data types. Here let's set up four different plotting libraries controlled by a couple of widgets, for Hans Rosling's gapminder example.

In [1]:
import param
import numpy as np 
import pandas as pd
import panel as pn

import altair as alt
import plotly.graph_objs as go
import matplotlib.pyplot as plt
import hvplot.pandas

pn.extension('vega', 'plotly')