How to Solve NameError: name 'InteractiveShell' is not defined -- IPython
Solution: Import the 'InteractiveShell' module
To Solve the error, add the following line to the top of your code.
from IPython.core.interactiveshell import InteractiveShell
For more information:
Python IPython InteractiveShell