You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, for some reason, I need to use tkinter with jupyter notebook, and when I excuted a small length of code, I got the TclError message. Please help me to address it. Or it just not work with it?
Hi, for some reason, I need to use tkinter with jupyter notebook, and when I excuted a small length of code, I got the TclError message. Please help me to address it. Or it just not work with it?
TclError Traceback (most recent call last)
Cell In[16], line 2
1 from tkinter import *
----> 2 root = Tk()
3 root.mainloop()
File /usr/local/lib/python3.9/tkinter/init.py:2270, in Tk.init(self, screenName, baseName, className, useTk, sync, use)
2268 baseName = baseName + ext
2269 interactive = False
-> 2270 self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
2271 if useTk:
2272 self._loadtk()
TclError: no display name and no $DISPLAY environment variable
The text was updated successfully, but these errors were encountered: