While reading the fastbook and running kernels, there was no problem (could be because of fastbook import perhaps). But when importing from scratch, tried:
from fastai.vision import *
from fastai.vision.data import *
Colab and local jupyer lab would throw an error.
These 2 from visual tutorials are also not working:
from fastai2.data.all import *
from fastai2.vision.all import *
fastai2 must be outdated, but I still gave it a run.
This is an error:
NameError: name 'DataBlock' is not defined
Please tell, how to import properly.
ps. forums and SO didn’t help.