Config class error on lesson 3 notebook ('Config is not defined')

(Kalyan Parajuli) #1

In the notebook lesson3-planet.ipynb, I get Config is not defined. What library is it imported from? What library does it need? I am running my notebook on a Mac. Could that be the reason?

0 Likes

(Zachary Mueller) #2

Try doing a from fastai import *

Config has how and where to store the datasets fastai uses. It lives in fastai.datasets so if that doesn’t work do a

from fastai.datasets import *

1 Like

(Kalyan Parajuli) #3

Thank you @muellerzr. That worked. I was stuck on it for weeks. So glad I can move on. Also don’t know why I did not think of it.
Did you face the same problem? Do you think the notebook needs edits?

0 Likes

(Zachary Mueller) #4

No, I had it run just fine in colab. I can try again later tonight and see why :slight_smile:

1 Like