0

Started using Azure data studio and creating documentation for some SQL processes in our system.

As part of that I need to include a flow diagram in the document. Currently I have uploaded an image to a URL and am able to embed the image in document from the URL.

But is there any way to include an image from a local folder? Please assist.

Dale K
  • 25,246
  • 15
  • 42
  • 71
vignesh
  • 1,414
  • 5
  • 19
  • 38

2 Answers2

0

I think this is what you want.

from IPython.display import Image
Image(filename='C:/your_path/your_image.PNG',width=200, height=100)
ASH
  • 20,759
  • 19
  • 87
  • 200
0

I was interested in this also. Syntax should be (if you store images in subfolder relative to notebook):

![ssms_subquery](images/16_ssms_subquery.png)

This didn't work for me initially: rendered as a broken image icon.

Things I tried:

  • Make sure you have a workspace defined for your root folder. Create the folder, then select "File > Add Folder to Workspace ..."

  • If that does nothing, try closing and restarting ADS. I've found the rendering to be flaky from time to time after awhile or if you have been opening/closing notebooks a lot.

Related topic has been discussed previously for markdown in general (but worth asking again for ADS!), eg. How to display local image in markdown

Emanuel V
  • 143
  • 8