Broken image references when importing notebooks into Kaggle

I do the following:

  1. Open Kaggle project
  2. Import notebook via github

The code runs fine (after some tweaks) but all of the images in the notebook are broken:

image

Here’s the reference:

image

Any ideas? Does Kaggle not automatically import references?

Can you post the link to the Kaggle notebook maybe?
It will be easier to debug.

The code you posted tries to load an image from images directory.
I assume you have copied your images over to Kaggle and put them inside an images directory?
I would check if the path is correct…

I did not copy any images over. The only thing I’ve done so far is import the notebook from the fastai/fastbook repository. I’m guessing it does not also copy the images over (I’ve very new to this!).

Is there an easy way to do this? Here is the notebook:

https://www.kaggle.com/code/williamsaxton/fast-ai-part-1-2

PS Google Colab was able to automagically reference the files when I opened up the notebook in it.