title: Restart Jupyter Lab server running in the background
body: <p>I'm trying to restart a Jupyter Lab server (not just the kernels) running in the background of an AWS SageMaker notebook instance. I have already tried the following:</p>
  
  <ul>
  <li>Killing the server by it's process ID
  
  <ul>
  <li><code>pgrep</code> doesn't show me the process</li>
  <li><code>pkill</code> can't find the process</li>
  <li><code>ps aux</code> shows the process ID as constantly changing</li>
  </ul></li>
  <li>Stopping the server through <code>jupyter notebook stop</code>
  
  <ul>
  <li>I get an SSL error and nothing happens</li>
  </ul></li>
  </ul>
  
  <p>The only thing I've been able to do is reboot the entire instance, which isn't a great option as it can take awhile to become available again.</p>
  
  <p>Edit 1:</p>
  
  <p>The main reason I am trying to do this is that after installing the <code>tqdm</code> package and trying to use <code>tqdm.notebook</code> in Jupyter Lab, in order for it to display correctly I need to enable/install notebook and lab extensions. In order for these to take effect the server then needs to be restarted.</p>