close

How to uninstall jupyter

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How to uninstall jupyter in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How to uninstall jupyter?

  1. How to uninstall jupyter?

    If you installed Jupiter notebook through anaconda, this may help you:
    conda uninstall jupyter notebook

  2. uninstall jupyter

    If you installed Jupiter notebook through anaconda, this may help you:
    conda uninstall jupyter notebook

Method 1

Try pip uninstall jupyter_core. Details below:

I ran into a similar issue when my jupyter notebook only showed Python 2 notebook. (no Python 3 notebook)

I tried to uninstall jupyter by pip unistall jupyterpi3 uninstall jupyter, and the suggested pip-autoremove jupyter -y.

Nothing worked. I ran which jupyter, and got /home/ankit/.local/bin/jupyter

The file /home/ankit/.local/bin/jupyter was just a simple python code:

#!/usr/bin/python3

# -*- coding: utf-8 -*-
import re
import sys

from jupyter_core.command import main

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(main())

Tried to uninstall the module jupyter_core by pip uninstall jupyter_core and it worked.

Reinstalled jupyter with pip3 install jupyter and everything was back to normal.

Method 2

If you installed Jupiter notebook through anaconda, this may help you:

conda uninstall jupyter notebook

Conclusion

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read