Doc() not imported in local installation

On my installation of Fastai v.1.0.60 on Windows 10, the doc() function is somehow not imported through the standard syntax.

from fastai.vision import *
from fastai import *
doc(SegmentationItemList)

Output:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-28-a3abe20d793b> in <module>
      1 from fastai.vision import *
      2 from fastai import *
----> 3 doc(SegmentationItemList)

NameError: name 'doc' is not defined

Other things appear imported normally, however. Example:

print(SegmentationItemList)
print(get_image_files)

Output:

<class 'fastai.vision.data.SegmentationItemList'>
<function get_image_files at 0x0000018D1B9EEA68>

When I use Fastai on Google Colab, the doc() function works as expected.

from fastai.vision import *
doc(SegmentationItemList)

Output:

class SegmentationItemList [source][test]

SegmentationItemList ( *** args** , convert_mode = 'RGB' , after_open : Callable = None , **** kwargs** ) :: ImageList

How can I troubleshoot this, please?

doc requires that you have ipython installed and be in a jupyter notebook. Check your local environment does have the most recent version of IPython.

I was in a jupyter notebook and the ipython version is 7.12.0.

The solution on another thread of of installing nbformat and nbconvert in the kernel’s environment solved the problem for me.