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