How to display image (.png, .jpeg) in synaps notebook?

Vivian Nguyen 40 Reputation points
2024-04-14T12:25:47+00:00

I want to display a saved image from my datacontainer (as a blob) in my synaps notebook. I tried accessing it with the abfss path, but it can not find the image with the filepath. (However the path worked for accessing a csv).

How can i display an image either in a Markdown, and how in a codeblock in the synaps notebook; Whay syntax do i exactly need?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,382 questions
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA-MSFT 77,336 Reputation points Microsoft Employee
    2024-04-15T05:03:06.49+00:00

    @Vivian Nguyen - Thanks for the question and using MS Q&A platform.

    Here is the method to display image in markdown.

    Note: Make sure the container access level should be container and not private.

    User's image

    Here is the code snippet to display image in markdown.

    ![image-alt-text](path of the image url)
    

    If your storage container access level==container it will display the image as shown below:

    User's image

    If your storage container access level==private it will not display the image as shown below:

    User's image

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.