Iād like to help and encourage you to keep at it, but its very hard to guess which code you are referring to. Please follow the advice here in the section āBefore You Askā .
One tip: With your searches put your error message inside quotes.
e.g. fastai "image_cat is not defined"
Let me know what you find out.
I got the same problem when trying the notebook 01_intro.ipynb in the course Deep Learning for Coders. I assume this question should be posted in the forum Deep Learning instead.
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 img = PILImage.create(image_cat())
2 img.to_thumb(192)
NameError: name 'image_cat' is not defined
Update:
Iām using the course on Paperspace named Paperspace + Fast.AI 07/16/2022 and it turns out ipywidgets canāt run there, which causes the problem.
The code cell quoted above also seems to be a dummy cell of sorts only to show how the authors display a cat image on their side. The actual uploader using the widget is below in the notebook.
But you can open the the notebook in JupyterLabs from Paperspace clicking on the last icon to the leftmost when viewing it on Paperspace. I found the solution in an issue about this on github.com/fastai.