Search code examples
rjupyterjupyter-notebookjupyter-irkernel

Display Images from file in R Jupyter notebook


I have an image on disk and want to display it in a markdown cell in an R Jupyter Notebook. How can I go about this?

I know with Python this as simple as importing the Image class from display.


Solution

  • In a markdown cell as you usually would in a Jupyter Python notebook:

    <img src="../relative/path/to/img.png">
    

    or

    ![image](../relative/path/to/img.png)