4

How can i use tkiner on google colab? I am facing the following error while running it.

Screenshot of the error

If it is not possible then how can i transfer a trained model from google colab to local environment in python IDLE

Student18
  • 125
  • 1
  • 1
  • 11
  • 2
    You can't. It works through browser only. – korakot Jul 09 '20 at 10:43
  • Does this answer your question? [Is there any way to use Tkinter with Google Colaboratory?](https://stackoverflow.com/questions/61168210/is-there-any-way-to-use-tkinter-with-google-colaboratory) – Peter Alsen Mar 16 '21 at 22:52

1 Answers1

2

No, you can not.

The notebooks execute code on Google's cloud servers and you would not be able to see a display.

You could try to run a framebuffer server and a DISPLAY pointing to it to emulate a graphical screen as suggested here, but it could become a challenge for itself since Colab doesn't natively support interactive screens.

D. S.
  • 142
  • 1
  • 1
  • 13