In the section “application”, I talked about how you need IPython to import HTML. This is used to allow Pygal to display SVGs within Jupyter.
Make sure you have IPython.display working correctly and have the code snippet starting with
from IPython.display import HTML….
Is written before your run the bar chart print cell.
Hope that helps.