title: How to Completely uninstall jupyter
body: <p>I am unable to open jupyter notebook <code>.ipynb</code> files (i can open jupyter notebook, but when i click on a <code>.ipynb</code> it exits with unkown error)
  Therefore i want to completely get rid of jupyter and ipython.</p>
  
  <p>I deinstalled jupyter and ipython with <code>sudo pip uninstall</code>, also with <code>pip2</code> and <code>pip3</code>, but still i am able to find jupyter at <code>/usr/local/bin/jupyter</code> and i am also able to start it with <code>jupyter</code>.</p>
  
  <p>If i now reinstall jupyter with pip, i get the same errors as before, so i guess it always starts the same that i still installed.</p>
  
  <p>So how can i deinstall this? just remove the binary?</p>
  
  <p>Edit1:
  i am using <code>python 2.7</code> and <code>Ubuntu 16.04</code> if that matters</p>
  
  <p>Edit2:
  i got basically the same problem as this <a href="https://stackoverflow.com/questions/46372877/pip-uninstall-jupyter-does-not-work-but-which-jupyter-returns">pip uninstall jupyter does not work but which jupyter returns</a></p>
  
  <p>Edit3:
  The complete error output when i try to open a jupyter-notebook:</p>
  
  <pre><code>[E 14:59:58.222 NotebookApp] Uncaught exception GET /api/contents/workspace/Mobile_Mask_RCNN/samples/demo.ipynb?type=notebook&amp;_=1523883598008 (127.0.0.1)
      HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/api/contents/workspace/Mobile_Mask_RCNN/samples/demo.ipynb?type=notebook&amp;_=1523883598008', version='HTTP/1.1', remote_ip='127.0.0.1', headers={'Accept-Language': 'de-DE,en-US;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'X-Xsrftoken': '2|ef5ec4f7|efb210b548db14e572dec5fa47cd9d4c|1523879395', 'X-Requested-With': 'XMLHttpRequest', 'Host': 'localhost:8888', 'Accept': 'application/json, text/javascript, */*; q=0.01', 'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0', 'Connection': 'keep-alive', 'Referer': 'http://localhost:8888/notebooks/workspace/Mobile_Mask_RCNN/samples/demo.ipynb', 'Cookie': '_xsrf=2|ef5ec4f7|efb210b548db14e572dec5fa47cd9d4c|1523879395; username-localhost-8888="2|1:0|10:1523883578|23:username-localhost-8888|44:YjJhYjc1MjI4Y2UwNDBlMDg1ZGJkN2QyMTkzZmM5ZGU=|c9400d948f07d89cf10b581a1251394138f0f7180395bdcffd5df47bd396c189"'})
      Traceback (most recent call last):
        File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1512, in _execute
          result = yield result
        File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 1055, in run
          value = future.result()
        File "/usr/local/lib/python2.7/dist-packages/tornado/concurrent.py", line 238, in result
          raise_exc_info(self._exc_info)
        File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 307, in wrapper
          yielded = next(result)
        File "/usr/local/lib/python2.7/dist-packages/notebook/services/contents/handlers.py", line 112, in get
          path=path, type=type, format=format, content=content,
        File "/usr/local/lib/python2.7/dist-packages/notebook/services/contents/filemanager.py", line 418, in get
          model = self._notebook_model(path, content=content)
        File "/usr/local/lib/python2.7/dist-packages/notebook/services/contents/filemanager.py", line 378, in _notebook_model
          self.mark_trusted_cells(nb, path)
        File "/usr/local/lib/python2.7/dist-packages/notebook/services/contents/manager.py", line 502, in mark_trusted_cells
          trusted = self.notary.check_signature(nb)
        File "/usr/local/lib/python2.7/dist-packages/nbformat/sign.py", line 438, in check_signature
          signature = self.compute_signature(nb)
        File "/usr/local/lib/python2.7/dist-packages/nbformat/sign.py", line 413, in compute_signature
          hmac = HMAC(self.secret, digestmod=self.digestmod)
        File "/usr/local/lib/python2.7/dist-packages/traitlets/traitlets.py", line 556, in __get__
          return self.get(obj, cls)
        File "/usr/local/lib/python2.7/dist-packages/traitlets/traitlets.py", line 535, in get
          value = self._validate(obj, dynamic_default())
        File "/usr/local/lib/python2.7/dist-packages/nbformat/sign.py", line 387, in _secret_default
          self._write_secret_file(secret)
        File "/usr/local/lib/python2.7/dist-packages/nbformat/sign.py", line 397, in _write_secret_file
          with io.open(self.secret_file, 'wb') as f:
      IOError: [Errno 13] Permission denied: '/home/gustav/.local/share/jupyter/notebook_secret'
  [W 14:59:58.223 NotebookApp] Unhandled error
  [E 14:59:58.223 NotebookApp] {
        "Accept-Language": "de-DE,en-US;q=0.5", 
        "Accept-Encoding": "gzip, deflate", 
        "X-Xsrftoken": "2|ef5ec4f7|efb210b548db14e572dec5fa47cd9d4c|1523879395", 
        "X-Requested-With": "XMLHttpRequest", 
        "Host": "localhost:8888", 
        "Accept": "application/json, text/javascript, */*; q=0.01", 
        "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0", 
        "Connection": "keep-alive", 
        "Referer": "http://localhost:8888/notebooks/workspace/Mobile_Mask_RCNN/samples/demo.ipynb", 
        "Cookie": "_xsrf=2|ef5ec4f7|efb210b548db14e572dec5fa47cd9d4c|1523879395; username-localhost-8888=\"2|1:0|10:1523883578|23:username-localhost-8888|44:YjJhYjc1MjI4Y2UwNDBlMDg1ZGJkN2QyMTkzZmM5ZGU=|c9400d948f07d89cf10b581a1251394138f0f7180395bdcffd5df47bd396c189\""
      }
  [E 14:59:58.223 NotebookApp] 500 GET /api/contents/workspace/Mobile_Mask_RCNN/samples/demo.ipynb?type=notebook&amp;_=1523883598008 (127.0.0.1) 37.67ms referer=http://localhost:8888/notebooks/workspace/Mobile_Mask_RCNN/samples/demo.ipynb
  </code></pre>