ryantam626 / jupyterlab_code_formatter

A JupyterLab plugin to facilitate invocation of code formatters.
MIT License
822 stars 52 forks source link

Duplicated settings #319

Open Erimus-Koo opened 1 year ago

Erimus-Koo commented 1 year ago

I've installed from the Extension Manager and pip.

Now, I have 2 settings tabs of "Jupyterlab Code Formatter".

In JSON editing mode, one of it starts with

{
    // Jupyterlab Code Formatter
    // jupyterlab_code_formatter:settings
    // Jupyterlab Code Formatter settings.
    // ***********************************

The other one is

{
    // Jupyterlab Code Formatter
    // @ryantam626/jupyterlab_code_formatter:settings
    // Jupyterlab Code Formatter settings.
    // **********************************************

But in Extension Manager, there's only one of them.

image

My Question

  1. How can I remove one from the settings?
  2. Which one is in the Extension Manager? (Is it the one actually works, and the other does not?)
  3. Then which one should I remove from settings?
ryantam626 commented 12 months ago

Hmm, I have some ideas of how this might have happened, but the details are not useful for you so I won't bore you with it.

@ryantam626/jupyterlab_code_formatter:settings came from an old implementation of the plugin, I have since completely reworked the plugin which uses jupyterlab_code_formatter:settings.

I would uninstall it from extension manager and also pip then install from pip only, please let me know how you get on with this if possible.

Erimus-Koo commented 12 months ago

I want to do that too, I mean delete it from the extension manager, but there's not an uninstall button.

I've tried to install it again, then uninstall it. And the pip version is also uninstalled.

But the setting is still there. Maybe there's some problem with the extension manager? Can I directly delete something from a certain folder?

image
Erimus-Koo commented 12 months ago

I found it!

image

After removing this folder, the duplicated setting disappeared. The prev part is my pyenv environment folder and the share/jupyter/lab/schemas contains the remaining things.

BTW, I find this folder by jupyter --paths

image