Search_images_bing reports NameError: name 'api' is not defined


I’m running this on azure ML studio. I chose fastaienv as the kernel. But always got such error

NameError Traceback (most recent call last)
----> 1 results = search_images_bing(key, ‘grizzly bear’)
2 ims = results.attrgot(‘content_url’)
3 len(ims)

/anaconda/envs/fastaienv/lib/python3.8/site-packages/fastbook/ in search_images_bing(key, term, min_sz)
50 def search_images_bing(key, term, min_sz=128):
—> 51 client = api(‘’, auth(key))
52 return L(, count=150, min_height=min_sz, min_width=min_sz).value)

NameError: name ‘api’ is not defined`

Hi. Did you find the root of this issue? If I use the ‘clean’ version of the notebook it runs OK.