# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# +
import os
import folium

print(folium.__version__)

# +

m = folium.Map(location=[22.5, -115], zoom_start=4)

video = folium.raster_layers.VideoOverlay(
    video_url='https://www.mapbox.com/bites/00188/patricia_nasa.webm',
    bounds=[[32, -130], [13, -100]],
    opacity=0.65,
    attr='Video from patricia_nasa',
    autoplay=True,
    loop=False,
)

video.add_to(m)

m.save(os.path.join('results', 'VideoOverlayLayer.html'))

m

StarcoderdataJupyterScriptsDedupFiltered