Search code examples
jupyter-notebookmarkdown

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?


Solution

  • 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