title: How to stop the Jupyter Server inside a Pycharm notebook
body: <p>A jupyter notebook is out to lunch: how can I stop it - short of restarting Pycharm?  The <code>interrupt kernel</code> lightning icon does nothing.</p>
  
  <p><a href="https://i.stack.imgur.com/s2DKr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s2DKr.png" alt="enter image description here"></a></p>
  
  <p>The last two cells look like this: we can see the last one is hanging:</p>
  
  <p><a href="https://i.stack.imgur.com/BdxAq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BdxAq.png" alt="enter image description here"></a></p>
  
  <p>I do not think this is related .. but in any case: The warning</p>
  
  <blockquote>
    <p>Notebook kernel doesn't match project interpreter</p>
  </blockquote>
  
  <p>has been "addressed" many times already by clicking on </p>
  
  <blockquote>
    <p>Register project interpreter as kernel.</p>
  </blockquote>
  
  <p>This also does not have any effect: the top banner bar goes away for a few seconds but then comes back at next attempt to run.</p>