title: python folium: make a gif from maps
body: <p>I am plotting an hourly update of the devices on different maps. To animate and analyze the update I'm displaying a new plot at each iteration by clearing out the output of the cell in jupyter. </p>
  
  <pre><code>map_ = [[] for i in range(max(dfByDeviceidHourly['hour'])+1)]
  for hour in dfByDeviceidHourly['hour'].unique():
      df_map = dfByDeviceidHourly[dfByDeviceidHourly['hour'] == hour]
      map_[hour] = folium.Map(location=list(df_map[['geocoordinates_latitude','geocoordinates_longitude']].mean()), zoom_start=13)
      for i,mark in enumerate(df_map):
          folium.Marker(list(df_map[['geocoordinates_latitude','geocoordinates_longitude']].iloc[i]), popup='The Waterfront').add_to( map_[hour] )
      clear_output(wait = True)
      display(map_[hour])
      time.sleep(4)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/1HU8r.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1HU8r.png" alt="enter image description here"></a></p>
  
  <p><strong>Is there a way in which I can make a video or gif out of the above?</strong></p>
  
  <p>I found one method (here: <a href="https://github.com/python-visualization/folium/issues/35" rel="noreferrer">https://github.com/python-visualization/folium/issues/35</a>) which involves saving the images as html, converting them into png, creating a gif out of them and then rendering it on the notebook. Though I'm looking for a more robust alternative for it.</p>