fixing embed

This commit is contained in:
Julie Kirsch 2025-03-03 21:58:39 +01:00
parent 7b51db6960
commit 313d811ad1

View file

@ -5,19 +5,39 @@ To help you illustrate your content, it can be sueful to add some type of visual
`````{tab-set} `````{tab-set}
````{tab-item} Linking ````{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 :width: 700
:height: 400 :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 ```{figure} https://town-n-country-living.com/wp-content/uploads/2023/06/craftsman-exterior.jpg
:width: 700 :width: 700
:height: 400 :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 ````{tab-item} Embedding