Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jupyterlab doesn't display png image

jupyterlab fails to display png image:

![title](image/filename.png)

results in showing only displaying the title.

I have the following installation

JupyterLab v0.35.4
Known labextensions:
   app dir: /anaconda3/envs/learnco_projects/share/jupyter/lab
        @jupyter-widgets/jupyterlab-manager v0.38.1  enabled  OK
        @jupyterlab/toc v0.6.0  enabled  OK
        @mflevine/jupyterlab_html v0.1.4  enabled  OK
        @ryantam626/jupyterlab_code_formatter v0.1.9  enabled  OK
        jupyterlab-flake8 v0.2.4  enabled  OK

Thank for the help

like image 740
osterburg Avatar asked Mar 19 '19 17:03

osterburg


People also ask

Why images are not loading in Jupyter Notebook?

If your images aren't loading correctly in the Jupyter Notebook locally or on datacamp.com (as accessed through your Teach dashboard), it is likely due to one or both of the following reasons: Your image has the file extension . svg. Datacamp.com's system doesn't like SVG images for some reason.

Can you paste image in Jupyter Notebook?

Yes, you can copy paste images in jupyter notebook. Just go in notebook cell and select heading and paste the image.


1 Answers

One easy way to display image on a Jupyter notebook is using HTML chunk of code in a Markdown cell, here is an example:

<img src='./image/filename.png'>Image description</img>

Once you run the cell, the image and its description text should appear in place of the HTML code.

EDIT

This works with jupyter lab and classic jupyter notebook.

like image 156
swatchai Avatar answered Oct 17 '22 03:10

swatchai