diff --git a/book/exercises/008.md b/book/exercises/008.md index 2c0ff50..ccd56ee 100644 --- a/book/exercises/008.md +++ b/book/exercises/008.md @@ -5,19 +5,39 @@ To help you illustrate your content, it can be sueful to add some type of visual `````{tab-set} ````{tab-item} Linking -Embed a video +In Jupyter Book, you can embed a YouTube video using the `{iframe}` directive, ensuring you use the embed URL format. +```md -```{embed} https://www.youtube.com/watch?v=gbBsWo6em4c +```{iframe} https://www.youtube.com/embed/watch?v=gbBsWo6em4c :width: 700 :height: 400 ``` -also video +``` +For example, the above code cell, will result in the following video. + +```{iframe} https://www.youtube.com/embed/watch?v=gbBsWo6em4c +:width: 700 +:height: 400 +``` + +To link and display an online figure, you can use the `{figure}` directive, which also allows captions and references. + +```md ```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg :width: 700 :height: 400 + +My new figure ``` - +``` + +```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg +:width: 700 +:height: 400 + +My new figure +``` ```` ````{tab-item} Embedding