I am unable to change backend of matplotlib to tkEgg in Google Colab. Google Colab runtime throws the following error on changing matplitlib backend:
ErrorMy Code :ImportError: Cannot load backend 'TkAgg' which requires the 'tk' interactive framework, as 'headless' is currently running*
import matplotlib
import tkinter
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
Already Tried
I have already tried solution provided Here but it is not working for me.