0

I have tried to open image files in my jupyter notebook using ![description](image_source) markdown code.

But the problem with the above approach is that the image I tried to open is too big and the other problem is, if the image that I am trying to open is of high resolution then that image is not opening at all.

Please tell me if there are any attributes for this markdown code to shrink the image size.

Thanks in advance...

Harish Rudroju
  • 43
  • 2
  • 10

1 Answers1

2

Because the markdown in Jupyter notebooks can handle several HTML tags directly, you can use the third option shown here to display images in Jupyter notebooks. It is more succinctly spelled out here.

<img src="path/to/image1" width="45%"/>
<img src="path/to/image2" width="200"/>

Alternatively you can use use the style CSS property within the <img> tag like illustrated here under the section 'HTML / CSS Codes to Tile Images' and here under 'Responsive Images' to control the dimensions in the markdown.

Wayne
  • 6,607
  • 8
  • 36
  • 93