Completely Remove Jupyter

How to Completely uninstall jupyter

Fixing the jupyter error

You have a permissions issue:

IOError: [Errno 13] Permission denied: '/home/gustav/.local/share/jupyter/notebook_secret'

Uninstalling is not going to help, at least not directly. You might be able to fix it by entering this command in a terminal:

mkdir -p ${HOME}/.local/share/jupyter

This will fix the error if it was due to the .local/share/jupyter directory not existing.

Completely uninstalling jupyter

If you can't fix the permission issue, here's the simplest set of commands for nuking jupyter from space:

pip install pip-autoremove
pip-autoremove jupyter -y

From a little bit of testing I just did, you might also have to run at the end:

pip-autoremove jupyter-core -y
Opening .ipynb files with a doubleclick

You can't open .ipynb with just vanilla Jupyter by double clicking. This is by design (also arguably a design flaw, but eh). You can add this functionality with the nbopen project.

To install on Ubuntu, just run the following in a terminal:

python3 -m pip install nbopen
python3 -m nbopen.install_xdg

I haven't tested this though since I'm not running Linux.

How to open .ipynb files the "normal" way

You can't open .ipynb with just vanilla Jupyter by double clicking. This is by design (also arguably a design flaw, but eh).

Instead, you have to open files in the Jupyter file manager, which you run like this:

  1. Open a new terminal window (in Ubuntu you can just enter Ctrl+Alt+T).

  2. Start up the notebook server by running jupyter notebook

  3. This should automatically open a new window in your internet browser that's pointing to the Jupyter file manager. If it doesn't, there'll be a line in your terminal that says something like

    Copy/paste this URL into your browser when you connect for the first time, to login with a token:

    In that case, just copy the following URL into the address bar of a browser window and hit enter.

  4. You should now have a browser window showing the Jupyter file manager. Use the file manager to navigate to the .ipynb you want to open, and then just click on it.

Admittedly a bit convoluted, especially at first. I believe the reason Jupyter is set up this way goes back to its server-based architecture, and the fact that the design team wanted it to be easily/seamlessly deployed on remote computers.

How to uninstall Jupyter note book installed by pip3

I have just tried

$ pip3 install pip-autoremove
$ pip-autoremove jupyter -y

It cleared all. I checked with

pip3 freeze | grep jupyter
which jupyter

Nothing came back. So it's all good.

There is also other suggestion here

Below is copy from the link:(you might need to use pip3)
Run conda uninstall notebook nbconvert nbformat ipykernel ipywidgets qtconsole traitlets tornado jupyter_* ipython_genutils jinja2 -y in your terminal. You can use pip uninstall instead of conda uninstall if you aren't using anaconda.

Uninstall Jupyter-Lab with conda completely

When jupyterlab is installed use jupyter --paths to see where the configuration, data and runtime is stored. After removing the corresponding files and directories you will be able to perform a clean install without any traces of the old extensions.

Remember to use it in the right environment.



Related Topics



Leave a reply



Submit