Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter Notebook Image Captions

Is there a simple way of adding captions to images in Jupyter notebooks? I haven't figured out how to do this just yet and was hoping that somebody could give me some direction. So far in my searches I've come across two sources. I wasn't able to get the first, Source 1, to work. When I try out that route I don't see a displayed image, but rather the latex code within a closed box like so: Snapshot image

The other reference that I've come across is Source 2. This has a description under the "Figures" section which describes how you can insert a caption by editing a cell's metadata. In my version of Jupyter however(version 4.4.0), I don't see any tool bars that would allow me to edit the metadata of an individual cell. Without this capability I'm not sure how to follow the instructions of the given post.

Does anybody have any ideas where I'm going wrong or does anyone know of a simple way to add image captions within Jupyter notebooks? Any help would be very much appreciated!

like image 416
Tanya Jeffries Avatar asked Nov 17 '22 04:11

Tanya Jeffries


1 Answers

This question is super old but here is the general format

<figure>
<img src="WHERE THE PHOTO IS STORED" style="width:100%">
<figcaption align = "center"> YOUR CAPTION </figcaption>
</figure>
like image 133
Dave-G Avatar answered Nov 19 '22 22:11

Dave-G