ImageClassifierCleaner does not load the widgets

After running in my jupyterhub notebook:

cleaner = ImageClassifierCleaner(learn)
cleaner

result :

VBox(children=(Dropdown(options=('broccoli', 'kale', 'paprika', 'sugarbeet'), value='broccoli'), Dropdown(opti…

The GUI widget do not show up, which it make unable to clean the image.

I have tried

  1. using alternative to cleaner with display_image_cleaner → failed to locate the function
  2. updating & reinstalling fastai, fastcore

Question:
Is there any other option to clean up the image files?
Or have I missed something before cleaning

Understanding that this works for most people (including me), I suggest:

  1. Try the same code on Kaggle where you know tons of people are running it.
  2. Start from the working code in the fastbook clean directory. See if it runs. Do not change anything, or mark whatever changes you need to make.

Thank you for ur answer. However I have now empty list of results from the clean code, which I cant even see the result. (I have modified the code from 2022 lesson.) I will come back after fixing the bug!

if not path.exists():
path.mkdir()
print(path)
for o in bear_types:
print(True)
dest = (path/o)
dest.mkdir(exist_ok=True)
results = search_images_ddg(f’{o} bear’)
download_images(dest, urls=results)
fns = get_image_files(path)
fns
(#0) []

After fixing the bug, the widget doesnt apper by jupyterhub. maybe its problem of setting of juypter notebook

meanwhile assuming the my bottleneck is due to juypter notebook(explaination)