Hi, I have found some related topics on Stackoverflow.
http://stackoverflow.com/questions/13336823/matplotlib-python-error http://stackoverflow.com/questions/33902941/import-matplotlib-without-a-display Hope this helps. Best, moon On Wed, Jul 20, 2016 at 10:34 AM LE MINHHOANG <lemin1...@postech.ac.kr> wrote: > Hi all, > > > > I try the example from zeppelinhub below in my own cluster (Ambari server > with Spark, Zeppelin) > > > https://www.zeppelinhub.com/viewer/notebooks/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL2ZlbGl4Y2hldW5nL3NwYXJrLW5vdGVib29rLWV4YW1wbGVzL21hc3Rlci9aZXBwZWxpbl9ub3RlYm9vay8yQU1YNUNWQ1Uvbm90ZS5qc29u > > > > but I’ve got the error at the paragraph “*Let's plot something! – > matplotlib”* > > > Traceback (most recent call last): > > File "/tmp/zeppelin_pyspark-3580576524078731606.py", line 235, in <module> > > eval(compiledCode) > > File "<string>", line 1, in <module> > > File "/usr/lib64/python2.6/site-packages/matplotlib/pyplot.py", line 78, > in <module> > > new_figure_manager, draw_if_interactive, show = pylab_setup() > > File "/usr/lib64/python2.6/site-packages/matplotlib/backends/__init__.py", > line 25, in pylab_setup > > globals(),locals(),[backend_name]) > > File > "/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtkagg.py", > line 10, in <module> > > from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, > FigureCanvasGTK,\ > > File > "/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py", > line 8, in <module> > > import gtk; gdk = gtk.gdk > > File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line > 64, in <module> > > _init() > > File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line > 52, in _init > > _gtk.init_check() > > RuntimeError: could not open display > > > > Could you guys please help me out? > > > > Kind regards, > > Hoang Le > > POSTECH > > >