I would like to include image in a jupyter notebook.
If I did the following, it works :
from IPython.display import Image
Image(\"img/picture.png\")
If you want to use the Jupyter Notebook API (and not the IPython one anymore), I find the ipywidgets Jupyter's sub-project. You have an Image
widget. Docstring specifies that you have a value
parameter which is a bytes. So you can do:
import requests
from ipywidgets import Image
Image(value=requests.get('https://octodex.github.com/images/yaktocat.png').content)
I agree, it's simpler to use the Markdown style. But it shows you the Image display Notebook API. You can also resize the image with the width
and height
parameters.
Agreed, i had the same issues and this is what worked and what did not:
WORKED: <img src="Docs/pinoutDOIT32devkitv1.png" width="800"/>
*DOES NOT WORK: <img src="/Docs/pinoutDOIT32devkitv1.png" width="800"/>
DOES NOT WORK: <img src="./Docs/pinoutDOIT32devkitv1.png" width="800"/>*
Here's how you can do it with Markdown:
