I am using EMR 5.3.1 AWS cluster with Hadoop + Spark + Hive + Zeppelin
When I use Zeppelin and a command like:
%python import matplotlib.pyplot as plt plt.plot([1, 2, 3])
I get an error:
ImportError: Gtk3 backend requires pygobject to be installed.
How to solve it?
Add this line - matplotlib.use ('Agg')
import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt plt.plot([1,2,3])