jupyterlab / extension-cookiecutter-ts

A cookiecutter recipe for JupyterLab extensions in Typescript
BSD 3-Clause "New" or "Revised" License
183 stars 88 forks source link

Cannot uninstall by "jupyter labextension uninstall " and "pip uninstall" #135

Open dou-du opened 3 years ago

dou-du commented 3 years ago

When I develop the extension and install it by:

jupyter labextension develop --overwrite .

I cannot uninstall by neither "pip uninstall" and "jupyter labextension uninstall". When I try "jupyter labextension uninstall" it gave the error:

JupyterLab cannot uninstall jupyterlab-hide-code since it was installed outside of JupyterLab. Use the same method used to install this extension to uninstall this extension.
jasongrout commented 3 years ago

And what does pip uninstall do?

It may be that you'll need to delete the symbolic link jupyter labextension develop creates directly (at share/jupyter/labextensions/your-extension-name)

Perhaps there should be a corresponding develop command to delete a symbolic link.

dou-du commented 3 years ago

And what does pip uninstall do?

It may be that you'll need to delete the symbolic link jupyter labextension develop creates directly (at share/jupyter/labextensions/your-extension-name)

Perhaps there should be a corresponding develop command to delete a symbolic link.

Thanks. The pip uninstall only the python package. Yes, it will be nice to have a command to delete the symbolic link.

savakarrohan commented 2 years ago

Where is this share/jupyter/labextension/your-extension-name folder typically located? @dou-du

In my particular case I couldn't even disable my extension.

savakarrohan commented 2 years ago

Ahhh yes, I realised the share folder is the current installation path of the jupyter package, In my case it was under conda