Skip to article frontmatterSkip to article content

Hosted videos

If your video is hosted on a platform like YouTube or Vimeo you can use the iframe directive to embed it. For example,

::: {iframe} https://www.youtube.com/embed/MdOS6tPq8fc
:width: 100%
:align: center
:label: example-video
How to build a Jupyter Book!
:::

renders as,

Figure 1:How to build a Jupyter Book!

and can be referenced with [](#example-video), which when rendered will appear as: Figure 1.

For youtube, the link formatting you need to use is https://www.youtube.com/embed/ followed by the code at the end of the video URL (MdOS6tPq8fc for the above video example).