We've updated our documentation. You can find the new version of this notebook here: https://python-visualization.github.io/folium/latest/user_guide/ui_elements/popups.html