How to Solve NameError: name 'export_png' is not defined -- bokeh

Solution: Import the 'export_png' module

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

from bokeh import export_png

 

For more information:
Python bokeh export_png