codota / TabNine

AI Code Completions
https://tabnine.com
MIT License
10.64k stars 498 forks source link

Can't uninstall tabnine from jupyter-lab #540

Closed smarianimore closed 2 years ago

smarianimore commented 2 years ago

please complete the following information:

Issue Details: Apparently there is no way to uninstall tabnine from jupyter-lab or notebook

Origin of the issue is that I disabled tabnine from jupyterlab GUI but I see in console logs of jupyter server plenty of lines with [W 2022-07-19 11:20:10.871 ServerApp] 404 POST /tabnine?1658222410865 (::1) 1.77ms referer=[omitted]

I run jupyter-labextension list to confirm whether tabnine is installed and got /Library/Frameworks/Python.framework/Versions/3.7/share/jupyter/labextensions @tabnine/jupyterlab v0.0.24 enabled X (python, jupyterlab_tabnine)

I then run jupyter-labextension uninstall tabnine and got No labextension named "tabnine" installed I tried jupyter-labextension uninstall jupyterlab_tabnine and got the same I then tried jupyter-labextension uninstall @tabnine/jupyterlab and got JupyterLab cannot uninstall this extension. Use your Python package manager (pip, conda, etc.) to uninstall the package jupyterlab_tabnine

Then I proceeded with python3.9 -m pip uninstall jupyterlab_tabnine and got WARNING: Skipping jupyterlab_tabnine as it is not installed. I also tried python3.9 -m pip uninstall tabnine and python3.9 -m pip uninstall jupyterlab-tabnine with the same result

Finally I tried running jupyter-nbextension list and there is no tabnine indicated Same for jupyter-serverextension list

I do not know anymore what to do....

gz#16394

maya-tabnine commented 2 years ago

Hi, can you try running pip3 uninstall jupyterlab-tabnine or pip uninstall jupyterlab-tabnine?

smarianimore commented 2 years ago

Hi @maya-tabnine , thanks for your kind reply.

Hi got the same WARNING: Skipping jupyterlab_tabnine as it is not installed. message.

maya-tabnine commented 2 years ago

Do you remember how you installed it? What command did you use? Was it in a conda envriment? Can you please send me the full output of pip list? Do you have the Jupyter Notebook plugin there by mistake maybe?

smarianimore commented 2 years ago

I think I installed it from the Jupyter-lab GUI, from the extensions tab

It is now listed there among the installed extensions, and if I click "about" it tells me the following

`@tabnine/jupyterlab This is a prebuilt extension. To uninstall it, please apply following instructions.

Use your Python package manager (pip, conda, etc.) to uninstall the package jupyterlab_tabnine`

output of pip list is

`Package Version


altair 4.1.0 anyio 3.4.0 appnope 0.1.0 argcomplete 1.12.0 argon2-cffi 20.1.0 astor 0.8.1 attrs 19.3.0 AWSIoTPythonSDK 1.4.9 Babel 2.9.1 backcall 0.2.0 backports.zoneinfo 0.2.1 base58 2.1.1 beautifulsoup4 4.9.1 bleach 3.1.5 blinker 1.4 Bottleneck 1.3.2 cachetools 5.2.0 certifi 2020.6.20 cffi 1.14.1 chardet 3.0.4 charset-normalizer 2.0.8 click 7.1.2 cloudpickle 2.0.0 configparser 5.0.0 cycler 0.10.0 decorator 4.4.2 defusedxml 0.6.0 descartes 1.1.0 docopt 0.6.2 docx2txt 0.8 EbookLib 0.17.1 entrypoints 0.3 feather-format 0.4.1 future 0.18.2 gitdb 4.0.9 GitPython 3.1.27 graphviz 0.14.1 gym 0.21.0 h2o 3.34.0.1 idna 2.10 imageio 2.13.5 importlib-metadata 4.8.2 ipykernel 5.3.4 ipython 7.17.0 ipython-genutils 0.2.0 ipywidgets 7.5.1 jedi 0.17.2 Jinja2 2.11.2 joblib 0.16.0 json5 0.9.6 jsonschema 3.2.0 jupyter 1.0.0 jupyter-client 6.1.6 jupyter-console 6.1.0 jupyter-core 4.6.3 jupyter-server 1.12.0 jupyterlab 3.2.4 jupyterlab-server 2.8.2 jupyterlab-tabnine 0.0.24 kiwisolver 1.2.0 lxml 4.5.2 MarkupSafe 1.1.1 matplotlib 3.3.0 mistune 0.8.4 mizani 0.7.1 msgpack 1.0.0 nbclassic 0.3.4 nbconvert 5.6.1 nbformat 5.0.7 networkx 2.6.3 networkx-stubs 0.0.0 nltk 3.5 notebook 6.1.1 numexpr 2.7.1 numpy 1.19.5 packaging 21.3 palettable 3.3.0 pandas 1.1.5 pandas-stubs 1.0.4.5 pandocfilters 1.4.2 parso 0.7.1 patsy 0.5.2 pdfminer 20191125 pexpect 4.8.0 pgmpy 0.1.18 pickleshare 0.7.5 Pillow 8.0.1 pip 22.1.2 pipdeptree 0.13.2 plotly 4.9.0 plotnine 0.5.1 pocketsphinx 0.1.3 prometheus-client 0.8.0 prompt-toolkit 3.0.5 protobuf 4.21.1 ptyprocess 0.6.0 pyagrum 0.18.0 pyarrow 1.0.0 pycparser 2.20 pycryptodome 3.9.7 pydeck 0.7.1 pydotplus 2.0.2 pyglet 1.5.21 Pygments 2.6.1 pyparsing 2.4.7 pyreadstat 1.0.0 pyrsistent 0.16.0 python-dateutil 2.8.1 python-pptx 0.6.5 pytz 2020.1 pytz-deprecation-shim 0.1.0.post0 PyWavelets 1.2.0 pyzmq 19.0.2 qtconsole 4.4.2 redis 3.5.3 regex 2020.7.14 requests 2.25.1 retrying 1.3.3 scikit-image 0.19.1 scikit-learn 0.23.2 scikit-plot 0.3.7 scipy 1.7.3 seaborn 0.10.1 Send2Trash 1.5.0 setuptools 40.8.0 simplegeneric 0.8.1 six 1.15.0 sklearn 0.0 smmap 5.0.0 sniffio 1.2.0 soupsieve 2.0.1 SpeechRecognition 3.6.3 squarify 0.3.0 statsmodels 0.13.2 streamlit 0.72.0 sumolib 1.8.0 tabulate 0.8.9 terminado 0.8.3 testpath 0.4.4 textblob 0.15.3 textract 1.6.1 threadpoolctl 2.1.0 tifffile 2021.11.2 toml 0.10.2 toolz 0.11.2 torch 1.10.1 torchaudio 0.10.1 torchvision 0.11.2 tornado 6.1 tqdm 4.50.2 traci 1.8.0 traitlets 4.3.3 typing_extensions 4.0.0 tzdata 2022.1 tzlocal 4.2 urllib3 1.24 validators 0.20.0 watchdog 2.1.9 wcwidth 0.2.5 webencodings 0.5.1 websocket-client 1.2.1 wheel 0.32.1 widgetsnbextension 3.5.1 wordcloud 1.5.0 xgboost 1.1.1 xlrd 1.0.0 XlsxWriter 1.1.2 zipp 3.1.0`

maya-tabnine commented 2 years ago

I can see the plugin is still installed, it is in the list. Did you see https://github.com/codota/jupyter-tabnine/issues/36? Would you try it with your jupyterlab-tabnine plugin?

maya-tabnine commented 2 years ago

Also see this - https://stackoverflow.com/questions/66833296/how-to-prevent-jupyterlab-to-load-deleted-extensions?noredirect=1#comment118161760_66833296

smarianimore commented 2 years ago

yes I tried those specific things before posting an issue :)

maya-tabnine commented 2 years ago

Oh, I see, sorry then! I am looking at this message online since it looks like it is not something related to Tabnine specifically but a general issue that occurs. I found https://stackoverflow.com/questions/33412974/how-to-uninstall-a-package-installed-with-pip-install-user and https://superuser.com/questions/1718306/cannot-uninstall-ansible-with-pip-or-brew-on-mac-osx Maybe your solution will be on there?

smarianimore commented 2 years ago

Will try, many thanks for your assistance

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.