I have a code where I\'m trying out different Tkinter widgets, but Colab sends back an error saying that there\'s no display name or variable. The exact error message looks
No.
From the intro to google colab:
Colab notebooks execute code on Google's cloud servers
Servers generally don't even have a display. And even if they had, you wouldn't see it.
You will have to run Python on your desktop or laptop to use tkinter
.
Additionally, the colab environment is a form of IPython notebook, which is not really a standard Python environment. I would not recommend trying to run tkinter
programs from an IPython notebook even if you have IPython running locally.