How to use GUI in Google Colab?

Viewed 12982

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

1 Answers

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.

Related