Tkinter in IPython notebook

I am running a remote IPython Notebook server. I would like to use a library that has a dependency on Tkinter and that is my problem. Running Tkinter.Tk () gives an error when DISPLAY is not set.

Traceback (most recent call last):
  File "/usr/lib/python2.7/", line 810, in __bootstrap_inner
  File "/usr/local/lib/python2.7/dist-packages/ee/", line 116, in run
    self.parent = Tkinter.Tk()
  File "/usr/lib/python2.7/lib-tk/", line 1767, in __init__ = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
TclError: no display name and no $DISPLAY environment variable


I have no idea what I can do about this in the context of an IPython Notebook. Pylab drawings can be displayed without problem. Is there any X forwarding I could set in the Notebook config?

I configured the notebook according to these instructions:


source to share

All Articles