'Can't display SVG pictures with IPython.HTML

I Tried to plot out SVG images with IPython using this

from from IPython.display import HTML, display
if '.svg' in link: #img_data = bunch of tags


    display(HTML(img_data)))


    continue
  image = io.imread(link)
  ratio = image.shape[1]/image.shape[0]
  print(ratio)
  
  print(image.shape)
  resized = cv.cvtColor(image, cv.COLOR_BGR2RGB)
  
  resized = cv.resize(resized,(int(HEIGHT_RESIZED*ratio),HEIGHT_RESIZED),interpolation = cv.INTER_AREA)
  
  cv2_imshow(resized)

but when It reaches SVG images it shows this small picture icon instead of the SVG image



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source