Skip to content

Instantly share code, notes, and snippets.

@hhkaos
Last active September 26, 2024 16:38
Show Gist options
  • Save hhkaos/419d7afe1917066ba4dedcb7c948b45c to your computer and use it in GitHub Desktop.
Save hhkaos/419d7afe1917066ba4dedcb7c948b45c to your computer and use it in GitHub Desktop.
Embed video in jupyter
from IPython.display import HTML
HTML("""<style>.video-container{display:grid;justify-items:center;align-items:center;position:relative;width:100%;height:100%;min-height:400px;overflow:hidden}.video-container iframe{position:absolute;z-index:1;top:50%;left:50%;min-width:100%;min-height:100%;transform:translate(-50%,-50%)}</style><div class="video-container"><iframe id="kmsembed-1_61k6sy6f" width="608" height="402" src="https://mediaspace.esri.com/embed/secure/iframe/entryId/1_61k6sy6f/uiConfId/49806163/st/0" class="kmsembed" allowfullscreen webkitallowfullscreen mozallowfullscreen allow="autoplay *; fullscreen *; encrypted-media *" referrerpolicy="no-referrer-when-downgrade" sandbox="allow-downloads allow-forms allow-same-origin allow-scripts allow-top-navigation allow-pointer-lock allow-popups allow-modals allow-orientation-lock allow-popups-to-escape-sandbox allow-presentation allow-top-navigation-by-user-activation" frameborder="0" title="Road crack prediction"></iframe></div>""")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment