title: Restart kernel in Google Colab
body: <p>I´m trying to restart the kernel in a Google Colab Jupyter Notebook through a cell. The option given previously:</p>
  
  <pre><code>import os
  os._exit(00)
  </code></pre>
  
  <p>is ok, but it seems to me that this is not a very "pythonic" way of restarting the kernel. The other option:</p>
  
  <pre><code>from IPython.core.display import HTML
  HTML("&lt;script&gt;Jupyter.notebook.kernel.restart()&lt;/script&gt;")
  </code></pre>
  
  <p>seems more "pythonic" (better) to me, but it is not working. </p>
  
  <p>Is there something specific to Google Colab that I should have done?</p>
  
  <p>Best regards,</p>
  
  <p>Gustavo,</p>