Bokeh Tutorial

1.7 Animate (optional)

Exercise: Add a title plot for the app with month and year that gets updated with the plot animation


In [ ]:
# Imports
import numpy as np
import netCDF4

from bokeh.plotting import vplot, hplot, cursession, output_server, show

from viz import climate_map, timeseries, legend, get_slice

In [ ]:
# Data

In [ ]:
# Output option

In [ ]:
from bokeh.plotting import figure

# Data 

# New text Plot

In [ ]:
# Plots

In [ ]:
# Create layout

In [ ]:
# Show

In [ ]:
# Select data source for climate_map and month and year

In [ ]:
# Modify the previous loop: updates the image, month and year data sources

Exercise: Modify your viz.py file to include the new title plot