from vega_datasets import data
cylinders = np.sort(source.Cylinders.unique())
plot = alt.Chart(source[source.Cylinders == c]).mark_circle(size=60).encode(
tooltip=['Name', 'Horsepower', 'Miles_per_Gallon']
).properties(title = c.astype(str) + " Cylinders"
blocks=[dp.Plot(p, label=(c.astype(str) + " Cylinders")) for p, c in zip(plots, cylinders)],
blocks=[dp.Plot(p, label=(c.astype(str) + " Cylinders")) for p, c in zip(plots, cylinders)],
type=dp.SelectType.TABS # Override default choice
report.upload(name="Tabs and Dropdowns")