title: How to shutdown jupyter notebook app (server) without using ctrl-c?
body: <p>I run a jupyter notebook in the background on a Mac using</p>
  
  <pre><code>&gt;jupyter notebook &amp;
  </code></pre>
  
  <p>Because it is running in the background I can't use use <code>ctrl-c</code> to kill it. Furthermore no processes seem to have the name <code>jupyter</code> in the activity monitor. </p>
  
  <p>This github issue suggests that this no way to do it from the browser: <a href="https://github.com/jupyter/notebook/issues/1530" rel="noreferrer">https://github.com/jupyter/notebook/issues/1530</a>
  however it says it should be possible to do from the command line using <code>jupyter notebook stop &lt;portno&gt;</code> but that does not seem to work for me.</p>
  
  <p>How do I shutdown the jupyter server (ideally without having to search for the <code>pid</code> and then invoking <code>kill</code>)?</p>