How to Solve NameError: name 'text' is not defined -- pylab

Solution: Import the 'text' module

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

from pylab import text

 

For more information:
Python pylab text