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/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/local/lib/python2.7/dist-packages/ee/mapclient.py", line 116, in run
self.parent = Tkinter.Tk()
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1767, in __init__
self.tk = _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: http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-python-ipython-notebook/
+3
source to share
No one has answered this question yet
Check out similar questions: