Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

got TclError when code excuted with jupyter notebook #433

Open
xix1 opened this issue Jul 29, 2024 · 0 comments
Open

got TclError when code excuted with jupyter notebook #433

xix1 opened this issue Jul 29, 2024 · 0 comments
Labels
question Further information is requested

Comments

@xix1
Copy link

xix1 commented Jul 29, 2024

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

@xix1 xix1 added the question Further information is requested label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant