title: Google Colab: ImportError: Cannot load backend 'TkAgg' Which requires the 'tk' interactive framework, as 'headless' is currently running
body: <p>I am unable to change backend of matplotlib to tkEgg in Google Colab. Google Colab runtime throws the following error on changing matplitlib backend:</p>
  Error
  <blockquote>
  <p>ImportError: Cannot load backend 'TkAgg' which requires the 'tk'
  interactive framework, as 'headless' is currently running*</p>
  </blockquote>
  My Code :
  <pre><code>import matplotlib
  import tkinter
  matplotlib.use('TkAgg')
  import matplotlib.pyplot as plt
  </code></pre>
  Already Tried
  <p>I have already tried solution provided <a href="https://stackoverflow.com/questions/55811545/importerror-cannot-load-backend-tkagg-which-requires-the-tk-interactive-fra">Here</a> but it is not working for me.</p>