Images not showing in mybinder

I have a persistent problem of images not displaying in mybinder.org notebooks. The images are in the GitHub repo with the notebooks, and they display in the GitHub previews. They also display when the notebooks are viewed through Colab.

From within the Binder notebook, I can run !ls ./images/ in a code cell to see that the image files are indeed on the Binder notebook’s filesystem, but the images won’t display in the notebook itself using ![label](./images/imagefile.png) *Caption* in a markdown cell, only the label and caption.

Am I doing something wrong?

Hmm, can you provide a link to a repository? That’d be be helpful for debugging

Hi

Just stumbled on this after encountering the same problem.

The Binder URL is https://mybinder.org/v2/gh/IainChapman/s383_tensor/master
The GitHub repo is https://github.com/IainChapman/s383_tensor

(Sorry, very new so not sure which you need.)

The image is used in connections.ipynb, a few paras down under ‘Plane polars’.

Best.

In your particular case you need to change the markdown you use to ![some text](../files/planePolars.PNG).

Thanks Tim.

Yes, I hadn’t noticed that the file had at some point been given an all-capped extension. My Windows machine naturally didn’t care.

I’ll go with ./planePolars.PNG as the …/files doesn’t work on a local machine.

Thanks again.

1 Like