How to Solve NameError: name 'settings' is not defined -- jedi

Solution: Import the 'settings' module

To Solve the error, add the following line to the top of your code.

from jedi import settings

 

For more information:
Python jedi settings