how to load image in jupyter notebook code example

Example 1: show image jupyter notebook

#If you want it on a "Code" cell
from IPython.display import Image
Image("img/picture.png")

#If you want it on a "Markdown" cell
![title](img/picture.png)

Example 2: putting images in jupyter markdown

![title]("img/picture.png")

Example 3: save image from jupyter notebook

plt.savefig('output.png', dpi=300, bbox_inches='tight')

Example 4: save image from jupyter notebook

fig.tight_layout()
plt.savefig('output.png', dpi=300)

Tags:

Misc Example