Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to uninstall jupyter

Tags:

python

jupyter

I have been trying to uninstall jupyter

I have tried the following commands

pip uninstall jupyter pip3 uninstall jupyter 

and

rm -rf /Users/$user/Library/Jupyter/* 

Even after running all these commands when I type jupyter in the terminal I get the following message

usage: jupyter [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]                [--paths] [--json]                [subcommand] jupyter: error: one of the arguments --version subcommand --config-dir --data-dir --runtime-dir --paths is required 

What exactly is going wrong and why am I still able to use the command?

like image 200
jigar surana Avatar asked Oct 10 '15 09:10

jigar surana


People also ask

How do I remove jupyter from Windows?

The best way to uninstall it completely is by running: $ pip install pip-autoremove. $ pip-autoremove jupyter -y.

How do I uninstall jupyter anaconda?

Uninstall with the same mechanism you used to install it. If you installed with 'pip install', use 'pip uninstall'. If you installed with conda, 'conda uninstall'. If you installed something like Anaconda or Canopy, that should come with its own uninstall mechanism.


1 Answers

If you don't want to use pip-autoremove (since it removes dependencies shared among other packages) and pip3 uninstall jupyter just removed some packages, then do the following:

Copy-Paste:

sudo may be needed as per your need.

python3 -m pip uninstall -y jupyter jupyter_core jupyter-client jupyter-console jupyterlab_pygments notebook qtconsole nbconvert nbformat jupyterlab-widgets nbclient 

Note:

The above command will only uninstall jupyter specific packages. I have not added other packages to uninstall since they might be shared among other packages (eg: Jinja2 is used by Flask, ipython is a separate set of packages themselves, tornado again might be used by others).

In any case, all the dependencies are mentioned below(as of 21 Nov, 2020. jupyter==4.4.0 )

If you are sure you want to remove all the dependencies, then you can use Stan_MD's answer.

argon2-cffi async-generator attrs backcall bleach cffi decorator defusedxml entrypoints importlib-metadata ipykernel ipython ipython-genutils ipywidgets jedi Jinja2 jsonschema jupyter jupyter-client jupyter-console jupyter-core jupyterlab-pygments jupyterlab-widgets MarkupSafe mistune nbclient nbconvert nbformat nest-asyncio notebook packaging pandocfilters parso pexpect pickleshare prometheus-client prompt-toolkit ptyprocess pycparser Pygments pyparsing pyrsistent python-dateutil pyzmq qtconsole QtPy Send2Trash six terminado testpath tornado traitlets typing-extensions wcwidth webencodings widgetsnbextension zipp 

Executive Edit:

pip3 uninstall jupyter pip3 uninstall jupyter_core pip3 uninstall jupyter-client pip3 uninstall jupyter-console pip3 uninstall jupyterlab_pygments pip3 uninstall notebook pip3 uninstall qtconsole pip3 uninstall nbconvert pip3 uninstall nbformat 

Explanation of each:

  1. Uninstall jupyter dist-packages:

    pip3 uninstall jupyter

  2. Uninstall jupyter_core dist-packages (It also uninstalls following binaries: jupyter, jupyter-migrate,jupyter-troubleshoot):

    pip3 uninstall jupyter_core

  3. Uninstall jupyter-client:

    pip3 uninstall jupyter-client

  4. Uninstall jupyter-console:

    pip3 uninstall jupyter-console

  5. Uninstall jupyter-notebook (It also uninstalls following binaries: jupyter-bundlerextension, jupyter-nbextension, jupyter-notebook, jupyter-serverextension):

    pip3 uninstall notebook

  6. Uninstall jupyter-qtconsole :

    pip3 uninstall qtconsole

  7. Uninstall jupyter-nbconvert:

    pip3 uninstall nbconvert

  8. Uninstall jupyter-trust:

    pip3 uninstall nbformat

like image 85
Rahul Bharadwaj Avatar answered Oct 10 '22 08:10

Rahul Bharadwaj