Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to SCALE a pasted image in Jupyter Notebook?

I can paste/drag&drop images into a jupyter notebook markdown cell. They will appear as follows:

![image.png](attachment:image.png)

The image is displayed correctly (but to large). I am however unable to scale them. I tried varius solutions from this question: Changing image size in Markdown

Unfortunately they all won't work for me. After pressing shift+Enter the cell just displays the entered text and the image is gone. What am I doing wrong?

like image 575
v.tralala Avatar asked Jan 17 '19 16:01

v.tralala


1 Answers

As of today the accepted answer no longer works, the "proper" way of doing it is:

<div>
<img src="attachment:image.png" width="400">
</div>

But even this variant is not ideal as it doesn't export image when saving as to html. Votes here are welcome: https://github.com/jupyter/nbconvert/issues/1057

like image 98
Antony Hatchkins Avatar answered Nov 15 '22 11:11

Antony Hatchkins